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 MLModel
Recipients MLModel, georg.brandl
Date 2009-09-12.02:12:56
SpamBayes Score 7.0854433e-13
Marked as misclassified No
Message-id <1252721580.94.0.672952462459.issue6892@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-09-12 02:13:01MLModelsetrecipients: + MLModel, georg.brandl
2009-09-12 02:13:00MLModelsetmessageid: <1252721580.94.0.672952462459.issue6892@psf.upfronthosting.co.za>
2009-09-12 02:12:57MLModellinkissue6892 messages
2009-09-12 02:12:56MLModelcreate