pology.colors.ColorOptionParser

Package pology :: Module colors :: Class ColorOptionParser |

# Class ColorOptionParser

    optparse.OptionContainer --+
                               |
           optparse.OptionParser --+
                                   |
                                  ColorOptionParser

Lightweight wrapper for `OptionParser` from standard library `optparse`, to gracefully handle ColorString arguments supplied to its methods.

Instance Methods
__init__(self, *args, **kwargs) |
add_option(self, *args, **kwargs) add_option(opt_str, ..., kwarg=val, ...) |
Inherited from `optparse.OptionParser`: `add_option_group`, `check_values`, `destroy`, `disable_interspersed_args`, `enable_interspersed_args`, `error`, `exit`, `expand_prog_name`, `format_epilog`, `format_help`, `format_option_help`, `get_default_values`, `get_description`, `get_option_group`, `get_prog_name`, `get_usage`, `get_version`, `parse_args`, `print_help`, `print_usage`, `print_version`, `set_default`, `set_defaults`, `set_process_default_values`, `set_usage` Inherited from `optparse.OptionContainer`: `add_options`, `format_description`, `get_option`, `has_option`, `remove_option`, `set_conflict_handler`, `set_description`

Class Variables
Inherited from `optparse.OptionParser`: `standard_option_list`

Method Details

### __init__(self, *args, **kwargs) (Constructor) |
Overrides: optparse.OptionContainer.__init__

### add_option(self, *args, **kwargs) |
add_option(opt_str, ..., kwarg=val, ...) Overrides: optparse.OptionContainer.add_option (inherited documentation)