]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:41 +0000 (15:00 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 13:00:41 +0000 (16:00 +0300)
commit33c41360c8d0a2019feddb523295ff3d7d47ee3c
treea0ad27b21f4ff2a4761fa36c3f71b4a0e726cfbb
parentb4c504d76ff3aa42943854571fa7610db5407e80
[3.13] gh-125254: Fix error report about ambiguous option in argparse (GH-125273) (GH-125359)

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]