New submission from Pavel Ditenbir <[email protected]>:
Steps to reproduce.
Run the attached script:
$ python3 argparse-indent-sample.py --help
The 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
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
----------
components: Library (Lib)
files: argparse-indent-sample.py
messages: 384728
nosy: DiPaolo
priority: normal
severity: normal
status: open
title: argparse incorrectly shows help string on a new line in case of long
command string
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49730/argparse-indent-sample.py
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42875>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com