Feature Requests item #1089955, was opened at 2004-12-22 13:53 Message generated for change (Settings changed) made by rhettinger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1089955&group_id=5470
Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mike Orr (hierro) >Assigned to: Greg Ward (gward) Summary: optparse .error() should print options list Initial Comment: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1089955&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com