[docs] [issue9694] argparse required arguments displayed under "optional arguments"

Jack report at bugs.python.org
Mon Oct 8 19:34:18 EDT 2018


Jack <jackenneking at gmail.com> added the comment:

I'd like to note that this also happens with a required mutually exclusive group:

group = parser.add_mutually_exclusive_group(required=True)

The arguments in the group are listed under “optional arguments:”.

I'm guessing the mechanism is the same.

----------
nosy: +Jacktose

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


More information about the docs mailing list