Message192273
I'd suggest not worrying about the default metavar in the _expand_help() method. The formatted choice string created in that method is only used if the help line includes a '%(choices)s' string. The programmer can easily omit that if he isn't happy with the expanded list.
TestHelpVariableExpansion is the only test in test_argparse.py that uses it.
Sig('--foo', choices=['a', 'b', 'c'],
help='foo %(prog)s %(default)s %(choices)s') |
|
Date |
User |
Action |
Args |
2013-07-04 05:30:47 | paul.j3 | set | recipients:
+ paul.j3, terry.reedy, bethard, r.david.murray, chris.jerdonek, Radu.Ciorba |
2013-07-04 05:30:47 | paul.j3 | set | messageid: <1372915847.71.0.841734611143.issue16468@psf.upfronthosting.co.za> |
2013-07-04 05:30:47 | paul.j3 | link | issue16468 messages |
2013-07-04 05:30:47 | paul.j3 | create | |
|