
June 13, 2013
4:40 a.m.
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
4273
Age (days ago)
4273
Last active (days ago)
0 comments
1 participants
participants (1)
-
José Agustín Terol Sanchis