]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Sep 2024 07:55:33 +0000 (10:55 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 07:55:33 +0000 (07:55 +0000)
commit3c83f9958c14cd62ad8951c53536f7788745b0ba
tree3e02b7979efb16a34fdf9d7296da4aa9c0d9e08b
parentc578271366176a1d1b0941897efefb6e4d6508b4
gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required (GH-124306)

This allows to use positional argument with nargs='*' and without default
in mutually exclusive group and improves error message about required
arguments.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-21-22-32-21.gh-issue-72795.naLmkX.rst [new file with mode: 0644]