Below is the file 'CLIParser.py' from this revision. You can also download the file.
#!/usr/bin/env python # CLIParser.py # Utilities associated with command line UI from optparse import OptionParser, OptParseError class CLIParserError(OptParseError): """ CLIParserError """ class CLIParser(OptionParser): def error(self, msg): raise CLIParserError(msg) # def exit(self, status=0, msg=None): # OptionParser(self, status, msg)