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 <[email protected]>
<http://bugs.python.org/issue9350>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com