[docs] [issue16418] argparse with many choices can generate absurdly long usage message
paul j3
report at bugs.python.org
Tue Jul 9 05:13:26 CEST 2013
paul j3 added the comment:
In the patch I just posted to http://bugs.python.org/issue16468 I address this long list issue in several ways:
In the Usage line, the metavar gives the user an alternative
In the expanded help line the user can just omit the '%(choices)s'
In _check_value(), I implemented a numpy like summarize format for choice lists longer than 15 '{1,2,3,...,18,19}'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16418>
_______________________________________
More information about the docs
mailing list