]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125254: Fix error report about ambiguous option in argparse (GH-125273)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 12 Oct 2024 12:15:37 +0000 (15:15 +0300)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 12:15:37 +0000 (12:15 +0000)
commit63cf4e914f879ee28a75c02e867baa7c6047ea2b
tree88de7ebc06e68a4dd9e088e0249653427d675878
parent07c2d15977738165e9dc4248e7edda7c75ecc14b
gh-125254: Fix error report about ambiguous option in argparse (GH-125273)

This was a regression introduced in gh-58573. It was only tested for the
case when the ambiguous option is the last argument in the command line.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-10-10-19-57-35.gh-issue-125254.RtZxXS.rst [new file with mode: 0644]