Closed
Description
The next code doesn't generate a help text:
@task(help={'include_author': 'Include author in the footer'})
def docs(ctx, include_author=False):
"""
Docs generator
"""
print("Documenting...")
$ inv --help docs
Usage: inv[oke] [--core-opts] docs [--options] [other tasks here ...]
Docstring:
Docs generator
Options:
-i, --include-author
But replacing the key "include_author" with "include-author" in the help dictionary works:
$ inv --help docs
Usage: inv[oke] [--core-opts] docs [--options] [other tasks here ...]
Docstring:
Docs generator
Options:
-i, --include-author Include author in the footer
Metadata
Metadata
Assignees
Labels
No labels