]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-58573: Fix conflicts between abbreviated long options in the parent parser...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 7 Oct 2024 22:55:27 +0000 (01:55 +0300)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 22:55:27 +0000 (22:55 +0000)
commit6925e5b5c778d0c7deab58c62545b69b4a3d3844
tree05bbbb83d6852051d2cfcf04b771afe335a2e9a2
parent0a046771c0b274356ff3d550401b009a9eff3a9a
[3.13] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) (GH-124760)

Check for ambiguous options if the option is consumed, not when it is
parsed.
(cherry picked from commit 3f27153e077d7e9448e2f081275931968b40cc74)
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-26-22-14-12.gh-issue-58573.hozbm9.rst [new file with mode: 0644]