Steven Bethard <steven.beth...@gmail.com> added the comment:

Looks like "usage" is almost always lowercase in the programs I tried (ssh, 
svn, cat, etc.). So it probably wouldn't be a good idea to change the default. 
Seems like both this and issue 9694 need a better way to customize the text in 
argparse mesages.

As a temporary workaround for the group names, you can try:

parser._optionals.title = "Optional arguments"
parser._positionals.title = "Positional arguments"

I can't guarantee this will continue to work since it relies on internal 
details but at least it would work for the time being.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9652>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to