This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [argparse] Print texts starting with capital letters and finish with dot for more formality
Type: enhancement Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, iritkatriel, lys.nikolaou, silvioprog, vishalpandeyvip
Priority: normal Keywords:

Created on 2021-11-28 02:53 by silvioprog, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg407183 - (view) Author: Silvio Clecio (silvioprog) Date: 2021-11-28 02:53
Using a simple program as example, the argparse library prints the following text:

usage: app.py [-h]

options:
  -h, --help  show this help message and exit

However, for more formality, it would be nice to print something like this:

Usage: app.py [-h]

Options:
  -h, --help  Show this help message and exit.

Notice the sentences start as capital letters and the helper string finishes with dot.
msg407218 - (view) Author: Vishal Pandey (vishalpandeyvip) * Date: 2021-11-28 18:51
I would like to work on it as my first contribution to the python repository. Can you please assign this to me?
msg407227 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-11-28 19:45
I don't think argparse should do such formatting. You can give it the help text in this format if that's what you want printed, and you can implement your own formatter: https://docs.python.org/3/library/argparse.html#formatter-class
msg407279 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2021-11-29 14:29
I agree with @iritkatriel. Also, such a change to argparse would be too disruptive. So, I'm going to close this.
History
Date User Action Args
2022-04-11 14:59:52adminsetgithub: 90070
2021-11-29 14:29:26eric.smithsetstatus: open -> closed

type: enhancement
components: + Library (Lib), - Parser

nosy: + eric.smith
messages: + msg407279
resolution: wont fix
stage: resolved
2021-11-28 19:45:56iritkatrielsetnosy: + iritkatriel
messages: + msg407227
2021-11-28 18:51:42vishalpandeyvipsetnosy: + vishalpandeyvip
messages: + msg407218
2021-11-28 18:10:38pablogsalsetnosy: - pablogsal
2021-11-28 02:53:41silvioprogcreate