]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 20 Sep 2024 10:02:30 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2024 10:02:30 +0000 (13:02 +0300)
commit6c6b044304041aa3c2b7d138788fe41d61048f2a
tree10805dd9d801e5ba215ca4d6eda890b093a1ee4d
parenteca08d36879e740199a9d411b07ee8b7705e1b3c
[3.12] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233) (GH-124267)

Only the first one has now been removed, all subsequent ones are now
taken literally.
(cherry picked from commit aae126748ff3d442fdbcd07933855ffd7ae6f59c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-19-10-36-18.gh-issue-81691.Hyhp_U.rst [new file with mode: 0644]