[New-bugs-announce] [issue42875] argparse incorrectly shows help string on a new line in case of long command string
Pavel Ditenbir
report at bugs.python.org
Sat Jan 9 09:34:59 EST 2021
New submission from Pavel Ditenbir <pavel.ditenbir at gmail.com>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue42875>
_______________________________________
More information about the New-bugs-announce
mailing list