An extension of optparse.OptionParser that has custom error and exit handling
Classes:
- OptionParser
- the extension class of optparse.OptionParser
Bases: optparse.OptionParser
New Methods:
- set_error_handler()
- sets an error handler instead of the default
- set_exit_handler()
- sets an exit handler instead of the default
Declares a user-defined error has occurred.
Parameters:
- msg
- The error message string
Parameters:
- code
- The exit code
- msg
- The error message