[issue16468] argparse only supports iterable choices

Chris Jerdonek report at bugs.python.org
Tue Jan 15 22:23:56 CET 2013


Chris Jerdonek added the comment:

Note that we would also have to deal with not just the error text but also the usage string.  From the docs:

>>> parser.parse_args('11'.split())
usage: PROG [-h] {5,6,7,8,9}
PROG: error: argument foo: invalid choice: 11 (choose from 5, 6, 7, 8, 9)

----------

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


More information about the Python-bugs-list mailing list