[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir


Change by Pavel Ditenbir :


--
versions:  -Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue42875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir


Change by Pavel Ditenbir :


--
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue42875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir


Change by Pavel Ditenbir :


--
keywords: +patch
pull_requests: +23003
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24177

___
Python tracker 
<https://bugs.python.org/issue42875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir


New submission from Pavel Ditenbir :

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
addadd 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:
  CMDcommand 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 
<https://bugs.python.org/issue42875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com