Skip to content

Help does not display if the argument contains an underscore #533

@bmamouri

Description

@bmamouri

Pretty much the title. Here is how to reproduce it:

@task(help={
    'service': "The service that should be deployed",
    'env': 'Target environment',
    'git_branch': '[Optional] Name of the branch to be used in the host machines',
})
def deploy(c, service, env, git_branch=None):
    """
    Deploy a service into a specific environment and optionally using a specific git branch
    """

The result of invoke -h deploy:

Options:
  -e STRING, --env=STRING          Target environment
  -g STRING, --git-branch=STRING
  -s STRING, --service=STRING      The service that should be deployed

Also, I have no idea why the options are not listed in the right order!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions