parameters: (self, *args, **kwargs)
docstring: Creates a CommandOptionParser.
  
      Args:
        commands_dict: A dictionary mapping command strings to an object defining
            - add_options_func: Adds options to the option parser
            - run_command_func: Runs the command itself.
        example: An example command.
        everything else: Passed to optparse.OptionParser contructor.
docstring_summary: Creates a CommandOptionParser.
docstring_tokens: Creates a CommandOptionParser .
function: def __init__(self, *args, **kwargs):
      """Creates a CommandOptionParser.
  
      Args:
        commands_dict: A dictionary mapping command strings to an object defining
            - add_options_func: Adds options to the option parser
            - run_command_func: Runs the command itself.
        example: An example command.
        everything else: Passed to optparse.OptionParser contructor.
      """
      self.commands_dict = kwargs.pop('commands_dict', {})
      self.example = kwargs.pop('example', '')
      if not 'usage' in kwargs:
        kwargs['usage'] = 'Usage: %prog <command> [options]'
      optparse.OptionParser.__init__(self, *args, **kwargs)
function_tokens: def __init__ ( self , * args , * * kwargs ) : self . commands_dict = kwargs . pop ( 'commands_dict' , { } ) self . example = kwargs . pop ( 'example' , '' ) if not 'usage' in kwargs : kwargs [ 'usage' ] = 'Usage: %prog <command> [options]' optparse . OptionParser . __init__ ( self , * args , * * kwargs )