[issue16468] argparse only supports iterable choices

paul j3 report at bugs.python.org
Tue Jul 16 22:45:31 CEST 2013


paul j3 added the comment:

I just submitted a patch to http://bugs.python.org/issue11874 which rewrites _format_actions_usage().  It now formats the groups and actions directly, keeping a list of these parts.  It no longer has to cleanup or split a usage line into parts.  So it is not sensitive to special characters (space, [] or ()  ) in the choices metavar.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16468>
_______________________________________


More information about the Python-bugs-list mailing list