close
Skip to content

@task(help={...}) should be dash/underscore agnostic #590

@tuukkamustonen

Description

@tuukkamustonen

This doesn't work:

@task(help={'foo_bar': '...'})
def some_task(ctx, foo_bar):
    ...

This works:

@task(help={'foo-bar': '...'})
def some_task(ctx, foo_bar):
    ...

It's kinda confusing that you need to use the dashed syntax in help, while the parameter is really named with underscore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions