[issue46057] argparse: embedded groups may prevent options from being in help output

László Attila Tóth report at bugs.python.org
Mon Dec 13 12:53:17 EST 2021


László Attila Tóth <laszlo.attila.toth at gmail.com> added the comment:

my idea regarding _ArgumentGroup,add_argument_group is in the attached file. This doesn't solve the complete help output issue, but addresses the incorrectly called _ArgumentGroup.add_argument_group - a warn() call and return self.
As a result the help output for embedded groups (not mutually exclusive groups) work as expected. If the title parameter is specified, this
scenario is not checked, and so on.

----------
keywords: +patch
Added file: https://bugs.python.org/file50489/argparse-add-arg_grp-deprecation.diff

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


More information about the Python-bugs-list mailing list