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 eric.smith
Recipients benschmaus, bethard, eric.smith, r.david.murray
Date 2010年08月27日.00:14:37
SpamBayes Score 7.379083e-07
Marked as misclassified No
Message-id <1282868079.84.0.0451339251183.issue9694@psf.upfronthosting.co.za>
In-reply-to
Content
If you add a positional parameter by adding:
parser.add_argument('foo')
then the output becomes:
$ python argparse-help-says-required-args-are-optional.py -h
usage: issue9649.py [-h] --reqarg REQARG [--optarg OPTARG] foo
Do something
positional arguments:
 foo
optional arguments:
 -h, --help show this help message and exit
 --reqarg REQARG, -r REQARG
 This is required
 --optarg OPTARG, -o OPTARG
 This is optional
$
So whatever replaces "optional arguments:" needs to read well with "positional arguments:". Maybe just plain "options:" is good enough, but I think a word to replace "optional" (leaving "arguments:") would be better. I just don't have any useful suggestion :)
History
Date User Action Args
2010年08月27日 00:14:40eric.smithsetrecipients: + eric.smith, bethard, r.david.murray, benschmaus
2010年08月27日 00:14:39eric.smithsetmessageid: <1282868079.84.0.0451339251183.issue9694@psf.upfronthosting.co.za>
2010年08月27日 00:14:38eric.smithlinkissue9694 messages
2010年08月27日 00:14:37eric.smithcreate

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