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

R. David Murray report at bugs.python.org
Tue Nov 6 03:07:30 CET 2012


R. David Murray added the comment:

I don't think choices is a good choice there (pardon the pun).  You really want a custom type.  I'm inclined to think that that applies to any 'choices' value that is 'too large' for the help display.  Part of the point of choices is that you *want* the help display to list all the choices.

I'm inclined to close this as invalid.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list