Message157554
| Author |
Amnon.Harel |
| Recipients |
Amnon.Harel |
| Date |
2012年04月05日.08:34:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333614852.3.0.346870129538.issue14504@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
argparse's help messages for variables that use "store_const" can probably be improved:
- propagate the default to all the options
- mark the default option as such explicitly
- group the keywords that have the same destination together (?)
- place the default option first (?)
For example, wouldn't the attached .py be better served with a help message that looks like:
...
optional arguments:
-h, --help show this help message and exit
-w, --wrench use a wrench (default)
-H, --hammer use a hammer (default: wrench)
-s, --screwdriver use a screwdriver (default: wrench)
-T, --tnt just blow the whole thing up (default: wrench)
--foo FOO foo bar (default: None)
? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月05日 08:34:12 | Amnon.Harel | set | recipients:
+ Amnon.Harel |
| 2012年04月05日 08:34:12 | Amnon.Harel | set | messageid: <1333614852.3.0.346870129538.issue14504@psf.upfronthosting.co.za> |
| 2012年04月05日 08:34:11 | Amnon.Harel | link | issue14504 messages |
| 2012年04月05日 08:34:11 | Amnon.Harel | create |
|