Message92530
The help example in the middle of the optparse library documentation is
broken. The code reads:
parser = OptionParser()
parser.add_option("-h", "--help", action="help"),
parser.add_option("-v", action="store_true", dest="verbose",
help="Be moderately verbose")
parser.add_option("--file", dest="filename",
help="Input file to read data from"),
The result of executing this code is:
optparse.OptionConflictError: option -h/--help: conflicting option
string(s): -h, --help
I see that the documentation says that normally help is added
automatically so you don't need to do it, but doing so shouldn't break
especially since the example shows doing it.
Also, the trailing commas on two of the lines are weird and should be
removed. |
|
Date |
User |
Action |
Args |
2009-09-12 02:13:01 | MLModel | set | recipients:
+ MLModel, georg.brandl |
2009-09-12 02:13:00 | MLModel | set | messageid: <1252721580.94.0.672952462459.issue6892@psf.upfronthosting.co.za> |
2009-09-12 02:12:57 | MLModel | link | issue6892 messages |
2009-09-12 02:12:56 | MLModel | create | |
|