[docs] Improvement on argparse documentation

Vincenzo Pii vinc.pii at gmail.com
Wed Jun 12 16:06:39 CEST 2013


In the "short options" paragraph (
http://docs.python.org/2/howto/argparse.html#short-options), please specify
that when only the short option is provided for one argument, the value of
the option can be accessed by using the name of the short option without
the '-' character.

Example:

parser.add_argument("-b", help="builds the application",
action="store_true")

if (args.b == True):

Thanks,
Vincenzo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130612/bbac0390/attachment-0001.html>


More information about the docs mailing list