]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-58573: Fix conflicts between abbreviated long options in the parent parser and...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 29 Sep 2024 09:01:03 +0000 (12:01 +0300)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 09:01:03 +0000 (12:01 +0300)
commit3f27153e077d7e9448e2f081275931968b40cc74
tree0ce056d01c0e60da02b4f51e4d21fa70f2bd9fea
parent95e92ef6c74e973ea13d15180190d0fa2af82fbf
gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631)

Check for ambiguous options if the option is consumed, not when it is
parsed.
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]