paul j3 added the comment:

The earlier issue for '--' as arguement

http://bugs.python.org/issue14364

With the patch I suggested there '-f--' and '--foo=--' work as arguments.  
'--foo --' is still interpreted as a positionals switch.

In optparse parsing, a flagged option gets all the remaining strings, and 
consume what it needs.  In the argparse parser, strings are classed as flag and 
argument and '--'.  The top level allocates strings to Actions.  '--' is 
handled at the top level.  This difference in parsing makes it impossible to 
complete replicate POSIX action.

See also http://bugs.python.org/issue13922

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to