Jorge L. Martinez added the comment:
Maybe I can find the time to make a patch this weekend (either today or
tomorrow). I hope I'm not underestimating this somehow, but I don't think this
would take too long. The only issue I can foresee is in disagreement of what
the correc
Jorge L. Martinez added the comment:
> to remove the "--" present in arg_strings
*to remove the first "--" present...
--
___
Python tracker
<https://
Jorge L. Martinez added the comment:
> There are earlier bug/issues about the '--'.
Yes, there are:
https://bugs.python.org/issue9571
https://bugs.python.org/issue3
https://bugs.python.org/issue14364
But this one seems separate. Though they're related, they don'
Jorge L. Martinez added the comment:
To be clear, my opinion is that a single call of parse_args() should only ever
remove the first "--". Right now, it seems that it removes the first of each
argument group, as determined by narg
Jorge L. Martinez added the comment:
Sorry, I forgot to add details on my machine.
Python: 3.7.3
OS: Archlinux
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Jorge L. Martinez :
$ python -c '
import argparse
p = argparse.ArgumentParser()
p.add_argument("first_arg")
p.add_argument("args", nargs="*")
r = p.parse_args(["foo", "--", "bar", &qu