homepage

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.

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:12Amnon.Harelsetrecipients: + Amnon.Harel
2012年04月05日 08:34:12Amnon.Harelsetmessageid: <1333614852.3.0.346870129538.issue14504@psf.upfronthosting.co.za>
2012年04月05日 08:34:11Amnon.Harellinkissue14504 messages
2012年04月05日 08:34:11Amnon.Harelcreate

AltStyle によって変換されたページ (->オリジナル) /