Message187344
The patch that I recently submitted for http://bugs.python.org/issue13922
appears to solve this issue. It only removes the '--' that marked the end of options.
With:
parser = argparse.ArgumentParser()
parser.add_argument('-f','--foo')
print(parser.parse_args(['-f--']))
print(parser.parse_args(['--foo=--']))
print(parser.parse_args(['-f', '--']))
I get:
Namespace(foo='--')
Namespace(foo='--')
usage: foodash.py [-h] [-f FOO]
foodash.py: error: argument -f/--foo: expected one argument |
|
Date |
User |
Action |
Args |
2013-04-19 06:20:51 | paul.j3 | set | recipients:
+ paul.j3, bethard, eric.araujo, r.david.murray, maker, BreamoreBoy |
2013-04-19 06:20:51 | paul.j3 | set | messageid: <1366352451.54.0.555664737561.issue14364@psf.upfronthosting.co.za> |
2013-04-19 06:20:51 | paul.j3 | link | issue14364 messages |
2013-04-19 06:20:51 | paul.j3 | create | |
|