]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (GH-124374)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2024 20:16:45 +0000 (22:16 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 20:16:45 +0000 (20:16 +0000)
commit7cc773ba3d07d4a2e6cd39063fd1954abd6ae8f1
tree220483fbe5e7a6e85163f23acf46a9df04bd5391
parent62dcb8e013269ab1d57997476b238941249f4d26
[3.12] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (GH-124374)

In case of usage a long command along with max_help_position more than
the length of the command, the command's help was incorrectly started
on the new line.

(cherry picked from commit 7ee99217345af3010bf05b1f5241c661a5e0ea9b)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Pavel Ditenbir <pavel.ditenbir@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-19-03-46-59.gh-issue-87041.9Ox7Bv.rst [new file with mode: 0644]