Commits

Mike Orr committed 75d88b8

Add 'error' convenience method to logging_optparse.

  • Participants
  • Parent commits b97cbb9

Comments (0)

Files changed (1)

unfinished/logging_optparse.py

         if opts.log:
             self._init_logging_from_specs(opts.log)
 
+    def error(self, message, *args):
+        if args:
+            message %= args
+        OptionParser.error(self, message)
+
     #### Private methods