-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Make argparse print description of subcommand when invoke help doc on subcommand #89438
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
Comments
I have command-line script |
Hi! From your description it is not clear how exactly you create your subcommand. From my experience, it works. Demo:
Here's the output of
Do you have the same setup? Or is there anything else that needs to be fixed? |
For me it works as well, tested on 3.7, 3.9 and 3.11 . |
Hi, Chuanlong. Would you mind to upload a demo for this question? |
Are you expecting the subcommand help to show the 'help' line that the main help shows? subparsers.add_parser('a', help='a help') add_parser takes all of the parameters that I don't think we need to add anything to add_parser. |
Closed as the requested feature already exists in |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: