]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101599: argparse: simplify the option help string (GH-103372)
authorJokimax <77680901+Jokimax@users.noreply.github.com>
Fri, 2 Feb 2024 22:13:00 +0000 (00:13 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 22:13:00 +0000 (22:13 +0000)
commitc4a2e8a2c5188c3288d57b80852e92c83f46f6f3
tree60f21e5ad2a17dcd8cad96c76e826c237eddc696
parent73d20cafb54193c94577ca60df1ba0410b3ced74
gh-101599: argparse: simplify the option help string (GH-103372)

If the option with argument has short and long names,
output argument only once, after the long name:

   -o, --option ARG    description

instead of

   -o ARG, --option ARG    description
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2023-04-08-11-41-07.gh-issue-101599.PaWNFh.rst [new file with mode: 0644]