]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-58573: Fix conflicts between abbreviated long options in the parent parser...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 29 Sep 2024 09:18:06 +0000 (11:18 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 09:18:06 +0000 (09:18 +0000)
commitcbea45ad74779c0ffe760bab7f9d5ce149302495
tree588f4dc787ec0deb8d1896419770f2a432a28cd8
parent5464c8aa9856a65f576f536532ee56310397e109
[3.12] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) (GH-124759)

Check for ambiguous options if the option is consumed, not when it is
parsed.
(cherry picked from commit 3f27153e077d7e9448e2f081275931968b40cc74)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]