]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (#124373)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Sep 2024 01:05:51 +0000 (03:05 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 01:05:51 +0000 (18:05 -0700)
commit8d3a0fecbe2edb69cf66db82f1c59601aac94651
tree64a9053aead9581eb7551e896ebec19dd173fed3
parent67aa68f1b4f0205fb15b03032cb0452d9c5545f0
[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (#124373)

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.

(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]