]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-59317: Improve parsing optional positional arguments in argparse (GH-124303)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Sep 2024 12:46:41 +0000 (15:46 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 12:46:41 +0000 (15:46 +0300)
commit4a5e4aade420c594c5b3fe0589e9e6b444bd6ee5
tree355c8fc09b38b8806b4ed756b49424547e54cfef
parente69ff34e81eceb69de6623205c87e0145f1831e4
gh-59317: Improve parsing optional positional arguments in argparse (GH-124303)

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-21-19-02-37.gh-issue-59317.OAhNZZ.rst [new file with mode: 0644]