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 hierro
Recipients
Date 2004-12-22.18:53:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Why doesn't optparse.OptionParser.error() print the
list of correct options along with the error message
and usage?  This is what the user needs to know
whenever there's an error.  One can override this in a
subclass, but it's frustrating to have to do it every
time.  

To do this, change the first line in
OptionParser.error() from:

    self.print_usage(sys.stderr)

to:

    self.print_help(sys.stderr)
    print >>sys.stderr
History
Date User Action Args
2007-08-23 16:08:37adminlinkissue1089955 messages
2007-08-23 16:08:37admincreate