-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-81691: Fix handling of multiple "--" (double dashes) in argparse #124233
gh-81691: Fix handling of multiple "--" (double dashes) in argparse #124233
Conversation
Thanks for putting up the PR. I was going back through a couple of other bugs in argparse related to the handling of I know that REMAINDER was made undocumented via #61252, but I think we'd probably still want to update this as well? |
Yes, but changing this behavior requires more significant rewriting. I am planning to do this later. |
…arse Only the first one has now been removed, all subsequent ones are now taken literally.
67ed47e
to
34884b2
Compare
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…arse (pythonGH-124233) Only the first one has now been removed, all subsequent ones are now taken literally. (cherry picked from commit aae1267) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-124266 is a backport of this pull request to the 3.13 branch. |
…arse (pythonGH-124233) Only the first one has now been removed, all subsequent ones are now taken literally. (cherry picked from commit aae1267) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-124267 is a backport of this pull request to the 3.12 branch. |
…parse (GH-124233) (GH-124267) Only the first one has now been removed, all subsequent ones are now taken literally. (cherry picked from commit aae1267) Co-authored-by: Serhiy Storchaka <[email protected]>
…arse (pythonGH-124233) Only the first one has now been removed, all subsequent ones are now taken literally.
…arse (pythonGH-124233) Only the first one has now been removed, all subsequent ones are now taken literally.
…parse (GH-124233) (GH-124266) Only the first one has now been removed, all subsequent ones are now taken literally. (cherry picked from commit aae1267) Co-authored-by: Serhiy Storchaka <[email protected]>
Only the first one has now been removed, all subsequent ones are now taken literally.