]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142346: Fix usage formatting for mutually exclusive groups in argparse (GH-142381)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 7 Dec 2025 19:36:01 +0000 (21:36 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Dec 2025 19:36:01 +0000 (21:36 +0200)
commit1db9f56bff5bbb0292b131ea8a928612acb7ec16
tree79e173914ec68dcacbfc722fe2b99bda58d5d23f
parentd6d850df89c97fbced893b7914682efedfa6ebc4
gh-142346: Fix usage formatting for mutually exclusive groups in argparse (GH-142381)

Support groups preceded by positional arguments or followed or intermixed
with other optional arguments. Support empty groups.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2025-12-07-17-30-05.gh-issue-142346.okcAAp.rst [new file with mode: 0644]