]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142346: Fix usage formatting for mutually exclusive groups in argparse...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Dec 2025 20:03:05 +0000 (21:03 +0100)
committerGitHub <noreply@github.com>
Sun, 7 Dec 2025 20:03:05 +0000 (20:03 +0000)
commit7308015d9ce2c3d1a9887b769abc4fd888571dd1
treecd2871eb0f395ad95b90585a92a5b5788e0aa602
parentb188ebeca0710a243571e95e650d6a910c26795e
[3.14] gh-142346: Fix usage formatting for mutually exclusive groups in argparse (GH-142381) (GH-142385)

Support groups preceded by positional arguments or followed or intermixed
with other optional arguments. Support empty groups.
(cherry picked from commit 1db9f56bff5bbb0292b131ea8a928612acb7ec16)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]