Author paul.j3
Recipients BreamoreBoy, bethard, eric.araujo, maker, paul.j3, r.david.murray
Date 2013-04-19.06:20:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366352451.54.0.555664737561.issue14364@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-04-19 06:20:51paul.j3setrecipients: + paul.j3, bethard, eric.araujo, r.david.murray, maker, BreamoreBoy
2013-04-19 06:20:51paul.j3setmessageid: <1366352451.54.0.555664737561.issue14364@psf.upfronthosting.co.za>
2013-04-19 06:20:51paul.j3linkissue14364 messages
2013-04-19 06:20:51paul.j3create