This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jol
Recipients jol
Date 2019-07-05.20:45:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562359530.82.0.205006034858.issue37510@roundup.psfhosted.org>
In-reply-to
Content
$ python -c '
import argparse
p = argparse.ArgumentParser()
p.add_argument("first_arg")
p.add_argument("args", nargs="*")
r = p.parse_args(["foo", "--", "bar", "--", "baz", "--", "zap"])
print(r.first_arg + " " + " ".join(r.args))
'                        

returns:

foo bar baz -- zap

when I think it should return:

foo bar -- baz -- zap
History
Date User Action Args
2019-07-05 20:45:31jolsetrecipients: + jol
2019-07-05 20:45:30jolsetmessageid: <1562359530.82.0.205006034858.issue37510@roundup.psfhosted.org>
2019-07-05 20:45:30jollinkissue37510 messages
2019-07-05 20:45:30jolcreate