Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix displaying docstring in command --help #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lewelyn7
Copy link

Hi, thanks for sharing great project!
When I was using your lib i noticed this bug:
ArgumentParser object requires keyword argument description instead of help according to https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser
Now after this fix, when you type <command_name> -h also docstring from command class is printed.

Later I also noticed that, when i replaced help kwarg with description kwarg the <app_name> --help broke. There wasn't info about commands.
So, finally instead of replacing arguments I added description kwarg and now the docstring is visible in both: app help and command help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant