This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients Radu.Ciorba, bethard, chris.jerdonek, paul.j3, r.david.murray, terry.reedy
Date 2013-07-04.05:30:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372915847.71.0.841734611143.issue16468@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2013-07-04 05:30:47paul.j3setrecipients: + paul.j3, terry.reedy, bethard, r.david.murray, chris.jerdonek, Radu.Ciorba
2013-07-04 05:30:47paul.j3setmessageid: <1372915847.71.0.841734611143.issue16468@psf.upfronthosting.co.za>
2013-07-04 05:30:47paul.j3linkissue16468 messages
2013-07-04 05:30:47paul.j3create