You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
argparse incorrectly shows help string on a new line in case of long command string #87041
3.12only security fixes3.13only security fixes3.14bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-01-09.14:34:59.534>labels= ['3.8', 'type-bug', 'library', '3.9', '3.10']
title='argparse incorrectly shows help string on a new line in case of long command string'updated_at=<Date2021-01-22.19:25:32.221>user='https://github.com/DiPaolo'
usage: argparse-indent-sample.py [-h] CMD ...
optional arguments:
-h, --help show this help message and exit
service:
CMD command to use
add add something
remove remove something
a-very-long-command
command that does something
Expected output is:
usage: argparse-indent-sample.py [-h] CMD ...
optional arguments:
-h, --help show this help message and exit
service:
CMD command to use
add add something
remove remove something
a-very-long-command command that does something
3.12only security fixes3.13only security fixes3.14bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Activity
DiPaolo commentedon Jan 9, 2021
Steps to reproduce.
Run the attached script:
The output is:
Expected output is:
5 remaining items
Merge branch 'main' into pythongh-87041
Merge branch 'main' into pythongh-87041
GH-87041: Fix incorrect indentation in argparse help (GH-124230)
pythonGH-87041: Fix incorrect indentation in argparse help (pythonGH-…
pythonGH-87041: Fix incorrect indentation in argparse help (pythonGH-…
[3.12] GH-87041: Fix incorrect indentation in argparse help (GH-124230)…
[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230)…