Author stefan
Recipients stefan
Date 2018-04-29.19:38:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525030701.58.0.682650639539.issue33389@psf.upfronthosting.co.za>
In-reply-to
Content
I'm using Python's `argparse` module to define optional arguments.
I'm calling the `argparse.add_argument` method to add both short and long arguments, but I notice that the generated help message lists some information twice. For example:
```
argparse.add_argument('-s', '--service',...)
```
will generate

```
-s SERVICE, --service SERVICE
```
and when I add a `choices` argument, even the choices list is repeated. I think it would be more useful to suppress the repetition to produce output such as
```
-s|--service SERVICE ...
```
instead with both the meta var as well as choices etc. printed only once.
History
Date User Action Args
2018-04-29 19:38:21stefansetrecipients: + stefan
2018-04-29 19:38:21stefansetmessageid: <1525030701.58.0.682650639539.issue33389@psf.upfronthosting.co.za>
2018-04-29 19:38:21stefanlinkissue33389 messages
2018-04-29 19:38:21stefancreate