[docs] Documentation bug

José Agustín Terol Sanchis agus3985 at gmail.com
Thu Jun 13 10:40:09 CEST 2013


At section 15.4.2.11. add_help (
http://docs.python.org/2/library/argparse.html#add-help ) there is an error
on the last piece of code. Where it is written:



>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')

>>> parser.print_help()

usage: PROG [-h]



optional arguments:

  -h, --help  show this help message and exit



Should be:



>>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')

>>> parser.print_help()

usage: PROG [-h]



optional arguments:

  +h, ++help  show this help message and exit



As it is described in the previous paragraph. The second way works for me
for Python 2.7.2 on Windows 7 64 bits.


Regars,

Agus Terol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130613/c71bbf67/attachment-0001.html>


More information about the docs mailing list