[issue45275] Make argparse print description of subcommand when invoke help doc on subcommand

paul j3 report at bugs.python.org
Mon Oct 25 12:39:19 EDT 2021


paul j3 <ajipanca at gmail.com> added the comment:

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 `ArgumentParser` takes, including description and epilog.  

I don't think we need to add anything to add_parser.

----------
nosy: +paul.j3

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45275>
_______________________________________


More information about the Python-bugs-list mailing list