[issue25882] argparse help error: arguments created by add_mutually_exclusive_group() are shown outside their parent group created by add_argument_group()
paul j3
report at bugs.python.org
Wed Dec 16 22:32:01 EST 2015
paul j3 added the comment:
I've attached a file that monkey patches the _ActionsContainer._add_container_actions method.
It corrects the `_container` attribute of the copied mutually exclusive groups. I've only tested it for the case presented in this issue (and the relate Stackoverflow question).
I may construct of formal patch later.
----------
Added file: http://bugs.python.org/file41332/issue25882.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25882>
_______________________________________
More information about the Python-bugs-list
mailing list