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

Nov. 14, 2012
5:14 p.m.
Chris Jerdonek added the comment: For maintenance releases, I think I would favor abbreviating the list only if it is "lossless" (e.g. for xrange objects). I think I would also be okay with abbreviating for arbitrary xranges -- in particular for arbitrary steps. For example, for xrange(0, 50, 3), I think something like the following might be better: "0, 3, 6, 9, ... 45, 48" (we could also include a difference hint). ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16418> _______________________________________
4486
Age (days ago)
4486
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Jerdonek