Message187754
This is a revision of yesterday's patch. It includes a couple of test cases that check that parser, groups, and exclusive groups all produce the error message.
I also changed the metavar tuple case to return an ArgumentError, and changed test_argparse.py accordingly. (this metavar testing was added in http://bugs.python.org/issue9348).
This issue overlaps with http://bugs.python.org/issue16970, 'argparse: bad nargs value raises misleading message'. There, though, the focus is more on the error message when nargs=0. While nargs<1 might not make much sense, it technically does not break anything. |
|
Date |
User |
Action |
Args |
2013-04-25 04:31:58 | paul.j3 | set | recipients:
+ paul.j3, bethard, eric.araujo, Jason.Baker, BreamoreBoy |
2013-04-25 04:31:58 | paul.j3 | set | messageid: <1366864318.5.0.870637145349.issue9849@psf.upfronthosting.co.za> |
2013-04-25 04:31:58 | paul.j3 | link | issue9849 messages |
2013-04-25 04:31:58 | paul.j3 | create | |
|