schrodinger :: utils :: cmdline :: SingleDashOption :: Class SingleDashOption
[hide private]
[frames] | no frames]

Class SingleDashOption

optparse.Option --+
                  |
                 SingleDashOption

A class to automatically translate long options with single dashes into double dash long options, but still print out help with the single dash.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
 
process_option_strings(self, formatted_option_strings)
Post-process the provided formatted options string to replace the translated double dash options with their original single dash specifications.

Inherited from optparse.Option: __repr__, __str__, check_value, convert_value, get_opt_string, process, take_action, takes_value

Inherited from optparse.Option (private): _check_action, _check_callback, _check_choice, _check_const, _check_dest, _check_nargs, _check_opt_strings, _check_type, _set_attrs, _set_opt_strings

Class Variables [hide private]

Inherited from optparse.Option: ACTIONS, ALWAYS_TYPED_ACTIONS, ATTRS, CHECK_METHODS, CONST_ACTIONS, STORE_ACTIONS, TYPED_ACTIONS, TYPES, TYPE_CHECKER

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 
Overrides: optparse.Option.__init__