]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-125254: Fix error report about ambiguous option in argparse (GH-125273...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Oct 2024 13:00:24 +0000 (15:00 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 13:00:24 +0000 (16:00 +0300)
commitaa0cdeb93cedef1e28bc3e4dc6cd4c5c3b1425d6
treed12fc2205c26baa6887206076112dc11ab02287d
parentaffffc7ddac68d01ab8d63872770a44e96c46c44
[3.12] gh-125254: Fix error report about ambiguous option in argparse (GH-125273) (GH-125360)

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.
(cherry picked from commit 63cf4e914f879ee28a75c02e867baa7c6047ea2b)

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