1. Ben Bangert
  2. WebHelpers

Commits

Mike Orr  committed 75d88b8

Add 'error' convenience method to logging_optparse.

  • Participants
  • Parent commits b97cbb9
  • Branches trunk

Comments (0)

Files changed (1)

File unfinished/logging_optparse.py

View file
  • Ignore whitespace
         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