[issue16418] argparse with many choices can generate absurdly long usage message

Chris Jerdonek report at bugs.python.org
Tue Nov 6 07:50:59 CET 2012


Chris Jerdonek added the comment:

The argparse documentation says in one part, "The choices keyword argument may be more convenient for type checkers that simply check against a range of values."

Thus, I wouldn't object to language clarifying that choices is meant for lists of choices that should be displayed in the command-line help (e.g. "smaller" lists and human-readable).

----------

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


More information about the Python-bugs-list mailing list