]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-66419: Make optional arguments with nargs=REMAINDER consume all arguments (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 Mar 2026 15:04:11 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 15:04:11 +0000 (17:04 +0200)
commit70c7e040d4f50219bd2832391e1a98701281fc58
tree40d1ba49586bd2f2793cda05f48e813c96d8d1a3
parent847f83ef1c1693d75cc024b31c3dcb9bcaca826f
gh-66419: Make optional arguments with nargs=REMAINDER consume all arguments (GH-124509)

It no longer stops at the first '--'.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-25-12-47-50.gh-issue-66419.DVSukU.rst [new file with mode: 0644]