Message115082
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. |
|
Date |
User |
Action |
Args |
2010-08-27 14:27:26 | bethard | set | recipients:
+ bethard, Tom.Browder |
2010-08-27 14:27:26 | bethard | set | messageid: <1282919246.56.0.777927713394.issue9652@psf.upfronthosting.co.za> |
2010-08-27 14:27:25 | bethard | link | issue9652 messages |
2010-08-27 14:27:25 | bethard | create | |
|