[issue11874] argparse assertion failure with brackets in metavars
paul j3
report at bugs.python.org
Sat Apr 19 00:09:02 CEST 2014
paul j3 added the comment:
Another example of code hitting this AssertionError. Here the problem was a space in the option argument, '--out '.
http://stackoverflow.com/questions/23159845/python-argparse-assertionerror
'parser.add_argument('-o', '--out ', help='b', required = True)'
That space would have cause problems later when trying access the 'args' attributes. But producing the error during the help formatting didn't help.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11874>
_______________________________________
More information about the Python-bugs-list
mailing list