[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts
paul j3
report at bugs.python.org
Thu Jul 11 08:33:09 CEST 2013
paul j3 added the comment:
One usage option is to make a subclass of HelpFormatter (the accepted way of customizing a formatter), and write a function that formats each group independently. For the example case, the resulting format might be:
usage: PROG [-h] [-b] [-a | -c] [-a | -d]
-h and -b are not part of any group. These are followed by the two groups. -a is repeated because it appears in both groups.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10984>
_______________________________________
More information about the Python-bugs-list
mailing list