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 bethard, paul.j3, tshepang
Date 2014-04-27.06:24:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398579861.35.0.661200526277.issue14074@psf.upfronthosting.co.za>
In-reply-to
Content
This patch fixes both help and error formatting.

A module level '_format_metavars' does the formatting for both.

I have tried several alternatives, including using the 'usage' style.

There is similarity between this fix and that for issue 16468 (custom choices), though I don't think they conflict.  In both cases, code needed to format the usage or help is also needed to help format error messages.

Issue 9849 (better nargs warning) is another case where error checking in the parser depends on the formatter.  In the long run we may want to refactor these issues.
History
Date User Action Args
2014-04-27 06:24:21paul.j3setrecipients: + paul.j3, bethard, tshepang
2014-04-27 06:24:21paul.j3setmessageid: <1398579861.35.0.661200526277.issue14074@psf.upfronthosting.co.za>
2014-04-27 06:24:21paul.j3linkissue14074 messages
2014-04-27 06:24:20paul.j3create