Message217240
| 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:21 | paul.j3 | set | recipients:
+ paul.j3, bethard, tshepang |
| 2014年04月27日 06:24:21 | paul.j3 | set | messageid: <1398579861.35.0.661200526277.issue14074@psf.upfronthosting.co.za> |
| 2014年04月27日 06:24:21 | paul.j3 | link | issue14074 messages |
| 2014年04月27日 06:24:20 | paul.j3 | create |
|