| Instance attributes:
      _short_opts : [string]
      _long_opts : [string]       action : string
      type : string
      dest : string
      default : any
      nargs : int
      const : any
      choices : [string]
      callback : function
      callback_args : (any*)
      callback_kwargs : { string : any }
      help : string
      metavar : string 
        
            | Methods |  |  
        |  |  
            |  | __init__ |  
        | 
__init__ (
        self,
        *opts,
        *attrs,
        )
 |  
            |  | __str__ |  
        | 
__str__ ( self )
 |  
            |  | _check_action |  
        | 
_check_action ( self )
 
        
            | Exceptions |  |  
        | OptionError( "invalid action: %r" % self.action, self ) 
 |  |  
            |  | _check_callback |  
        | 
_check_callback ( self )
 
        
            | Exceptions |  |  
        | OptionError( "callback not callable: %r" % self.callback, self ) OptionError( "callback supplied (%r) for non-callback option" % self.callback, self )
 OptionError( "callback_args supplied for non-callback option", self )
 OptionError( "callback_args, if supplied, must be a tuple: not %r" % self.callback_args, self )
 OptionError( "callback_kwargs supplied for non-callback option", self )
 OptionError( "callback_kwargs, if supplied, must be a dict: not %r" % self.callback_kwargs, self )
 
 |  |  
            |  | _check_choice |  
        | 
_check_choice ( self )
 
        
            | Exceptions |  |  
        | OptionError( "choices must be a list of strings ('%s' supplied)" % str(type( self.choices ) ).split( "'" ) [ 1 ], self ) OptionError( "must not supply choices for type %r" % self.type, self )
 OptionError( "must supply a list of choices for type 'choice'", self )
 
 |  |  
            |  | _check_const |  
        | 
_check_const ( self )
 
        
            | Exceptions |  |  
        | OptionError( "'const' must not be supplied for action %r" % self.action, self ) 
 |  |  
            |  | _check_dest |  
        | 
_check_dest ( self )
 |  
            |  | _check_nargs |  
        | 
_check_nargs ( self )
 
        
            | Exceptions |  |  
        | OptionError( "'nargs' must not be supplied for action %r" % self.action, self ) 
 |  |  
            |  | _check_opt_strings |  
        | 
_check_opt_strings ( self,  opts )
 
        
            | Exceptions |  |  
        | TypeError( "at least one option string must be supplied" ) 
 |  |  
            |  | _check_type |  
        | 
_check_type ( self )
 
        
            | Exceptions |  |  
        | OptionError( "invalid option type: %r" % self.type, self ) OptionError( "must not supply a type for action %r" % self.action, self )
 
 |  |  
            |  | _set_attrs |  
        | 
_set_attrs ( self,  attrs )
 
        
            | Exceptions |  |  
        | OptionError( "invalid keyword arguments: %s" % ", ".join(attrs.keys() ), self ) 
 |  |  
            |  | _set_opt_strings |  
        | 
_set_opt_strings ( self,  opts )
 
        
            | Exceptions |  |  
        | OptionError( "invalid long option string %r: " "must start with --, followed by non-dash" % opt, self ) OptionError( "invalid option string %r: " "must be at least two characters long" % opt, self )
 OptionError( "invalid short option string %r: " "must be of the form -x, (x any non-dash char)" % opt, self )
 
 |  |  
            |  | check_value |  
        | 
check_value (
        self,
        opt,
        value,
        )
 |  
            |  | convert_value |  
        | 
convert_value (
        self,
        opt,
        value,
        )
 |  
            |  | get_opt_string |  
        | 
get_opt_string ( self )
 |  
            |  | process |  
        | 
process (
        self,
        opt,
        value,
        values,
        parser,
        )
 |  
            |  | take_action |  
        | 
take_action (
        self,
        action,
        dest,
        opt,
        value,
        values,
        parser,
        )
        
            | Exceptions |  |  
        | RuntimeError, "unknown action %r" % self.action 
 |  |  
            |  | takes_value |  
        | 
takes_value ( self )
 |  |