[issue9350] add remove_argument_group to argparse
paul j3
report at bugs.python.org
Sun Sep 28 23:54:36 CEST 2014
paul j3 added the comment:
If the empty argument group has a 'description' it is displayed. For example with positionals group that I mentioned earlier:
parser = argparse.ArgumentParser()
parser._action_groups[0].description = 'test'
parser.print_help()
produces
usage: ipython [-h]
positional arguments:
test
optional arguments:
-h, --help show this help message and exit
So the user can fix this empty group display issue by setting this 'description' value to None.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9350>
_______________________________________
More information about the Python-bugs-list
mailing list