]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-87041: Fix incorrect indentation in argparse help (GH-124230)
authorSavannah Ostrowski <savannahostrowski@gmail.com>
Mon, 23 Sep 2024 19:45:36 +0000 (12:45 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 19:45:36 +0000 (19:45 +0000)
commit7ee99217345af3010bf05b1f5241c661a5e0ea9b
tree32d65f858cc4961e0713946f4b4a4c5468b14dd1
parent9e55a02fab77794c421b91429292ed227de0e24a
GH-87041: Fix incorrect indentation in argparse help (GH-124230)

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.

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]