Module Expr Str Assign NameStore Str Import alias alias Import alias ImportFrom alias alias ImportFrom alias alias alias FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore BinOpAdd Str Str Assign NameStore BinOpAdd Str Str Assign NameStore Call NameLoad Str Str keyword Str keyword Str Assign NameStore Call NameLoad Str keyword Str keyword Str ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Dict Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad CompareIs Call NameLoad NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str orelse If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad TupleLoad Str Str Str body Raise NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Pass orelse If CompareEq NameLoad Str body Raise Call NameLoad BinOpMod Str Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad NameLoad orelse If CompareEq NameLoad Str body For TupleStore NameStore NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If CompareIs Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd CompareEq Call NameLoad NameLoad Num UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise NameLoad BinOpMod Str NameLoad orelse Raise NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad For NameStore AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad For NameStore AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Return SubscriptLoad NameLoad Slice decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Num While BoolOpAnd NameLoad UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Delete SubscriptDel NameLoad Index Num Return Num orelse If CompareEq SubscriptLoad NameLoad Slice Num Num Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Str CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Num orelse Return Num Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Num orelse Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If CompareLt Call NameLoad NameLoad NameLoad body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num NameLoad Delete SubscriptDel NameLoad Slice Num NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Num Assign NameStore Num For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Num If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr body If CompareLt NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num SubscriptLoad NameLoad Slice NameLoad Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr If CompareLt Call NameLoad NameLoad NameLoad body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num NameLoad Delete SubscriptDel NameLoad Slice Num NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If NameLoad body Break decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Print NameLoad NameLoad Print NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Print NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body ImportFrom alias If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Str Assign NameStore Num Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Continue If NameLoad body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad orelse For NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd Num NameLoad Num Assign NameStore BinOpSub NameLoad NameLoad If CompareGt Call NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Print NameLoad BinOpMod Str TupleLoad NameLoad Str SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body Print NameLoad BinOpMod Str TupleLoad NameLoad Str NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Continue If CompareEq NameLoad NameLoad body Return NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad If NameLoad body Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list
N/A N/A optik.option_parser

Provides the OptionParser and Values classes.

Cheetah modifications:  added "Cheetah.Utils.optik." prefix to
  all intra-Optik imports.
 N/A __revision__ $Id: option_parser.py,v 1.1 2006-09-06 09:50:10 skyostil Exp $ N/A sys os N/A types Cheetah.Utils.optik.option Option NO_DEFAULT Cheetah.Utils.optik.errors OptionConflictError OptionValueError BadOptionError get_prog_name N/A N/A N/A N/A N/A N/A N/A N/A os path basename N/A N/A sys argv N/A 0 N/A N/A SUPPRESS_HELP N/A SUPPRESS HELP N/A SUPPRESS_USAGE N/A SUPPRESS USAGE N/A STD_HELP_OPTION N/A Option -h --help action help help show this help message and exit N/A STD_VERSION_OPTION N/A Option --version action version help show program's version number and exit Values N/A N/A __init__ N/A N/A self defaults N/A None N/A N/A defaults N/A N/A N/A attr val N/A N/A defaults items N/A N/A N/A setattr self attr val N/A _update_careful N/A N/A self dict N/A N/A N/A 
        Update the option values from an arbitrary dictionary, but only
        use keys from dict that already have a corresponding attribute
        in self.  Any keys in dict without a corresponding attribute
        are silently ignored.
         N/A attr N/A dir self N/A N/A N/A N/A dict has_key attr N/A N/A dval N/A dict N/A attr N/A N/A dval None N/A N/A N/A setattr self attr dval N/A _update_loose N/A N/A self dict N/A N/A N/A 
        Update the option values from an arbitrary dictionary,
        using all keys from the dictionary regardless of whether
        they have a corresponding attribute in self or not.
         N/A N/A N/A N/A self __dict__ update dict N/A _update N/A N/A self dict mode N/A N/A N/A N/A mode careful N/A N/A N/A N/A self _update_careful dict N/A N/A N/A mode loose N/A N/A N/A N/A self _update_loose dict N/A N/A ValueError N/A invalid update mode: %r mode N/A read_module N/A N/A self modname mode N/A careful N/A N/A N/A __import__ modname N/A mod N/A N/A sys modules N/A modname N/A N/A N/A self _update N/A vars mod mode N/A read_file N/A N/A self filename mode N/A careful N/A N/A vars N/A N/A N/A execfile filename vars N/A N/A N/A self _update vars mode N/A ensure_value N/A N/A self attr value N/A N/A N/A N/A N/A N/A hasattr self attr N/A N/A getattr self attr None N/A N/A N/A setattr self attr value N/A N/A getattr self attr N/A N/A OptionParser N/A N/A N/A 
    Class attributes:
      standard_option_list : [Option]
        list of standard options that will be accepted by all instances
        of this parser class (intended to be overridden by subclasses).

    Instance attributes:
      usage : string
        a usage string for your program.  Before it is displayed
        to the user, "%prog" will be expanded to the name of
        your program (os.path.basename(sys.argv[0])).
      option_list : [Option]
        the list of all options accepted on the command-line of
        this program
      _short_opt : { string : Option }
        dictionary mapping short option strings, eg. "-f" or "-X",
        to the Option instances that implement them.  If an Option
        has multiple short option strings, it will appears in this
        dictionary multiple times.
      _long_opt : { string : Option }
        dictionary mapping long option strings, eg. "--file" or
        "--exclude", to the Option instances that implement them.
        Again, a given Option can occur multiple times in this
        dictionary.
      _long_opts : [string]
        list of long option strings recognized by this option
        parser.  Should be equal to _long_opt.values().
      defaults : { string : any }
        dictionary mapping option destination names to default
        values for each destination.

      allow_interspersed_args : boolean = true
        if true, positional arguments may be interspersed with options.
        Assuming -a and -b each take a single argument, the command-line
          -ablah foo bar -bboo baz
        will be interpreted the same as
          -ablah -bboo -- foo bar baz
        If this flag were false, that command line would be interpreted as
          -ablah -- foo bar -bboo baz
        -- ie. we stop processing options as soon as we see the first
        non-option argument.  (This is the tradition followed by
        Python's getopt module, Perl's Getopt::Std, and other argument-
        parsing libraries, but it is generally annoying to users.)

      rargs : [string]
        the argument list currently being parsed.  Only set when
        parse_args() is active, and continually trimmed down as
        we consume arguments.  Mainly there for the benefit of
        callback options.
      largs : [string]
        the list of leftover arguments that we have skipped while
        parsing options.  If allow_interspersed_args is false, this
        list is always empty.
      values : Values
        the set of option values currently being accumulated.  Only
        set when parse_args() is active.  Also mainly for callbacks.

    Because of the 'rargs', 'largs', and 'values' attributes,
    OptionParser is not thread-safe.  If, for some perverse reason, you
    need to parse command-line arguments simultaneously in different
    threads, use different OptionParser instances.
    
     N/A standard_option_list N/A STD_HELP_OPTION __init__ N/A N/A self usage option_list option_class version conflict_handler N/A None None Option None error N/A N/A N/A N/A self set_usage usage N/A N/A self option_class option_class N/A N/A self version version N/A N/A N/A self set_conflict_handler conflict_handler N/A N/A self allow_interspersed_args 1 N/A N/A N/A self _create_option_list N/A N/A N/A self _populate_option_list option_list N/A N/A N/A self _init_parsing_state N/A _create_option_list N/A N/A self N/A N/A N/A N/A self option_list N/A N/A N/A self _short_opt N/A N/A N/A self _long_opt N/A N/A N/A self _long_opts N/A N/A N/A self defaults N/A N/A _populate_option_list N/A N/A self option_list N/A N/A N/A N/A self standard_option_list N/A N/A N/A N/A self add_options N/A self standard_option_list N/A N/A self version N/A N/A N/A N/A self add_option STD_VERSION_OPTION N/A option_list N/A N/A N/A N/A self add_options option_list N/A _init_parsing_state N/A N/A self N/A N/A N/A N/A self rargs None N/A N/A self largs None N/A N/A self values None N/A set_usage N/A N/A self usage N/A N/A N/A N/A usage None N/A N/A N/A self usage usage: %prog [options] N/A N/A N/A usage SUPPRESS_USAGE N/A N/A N/A self usage None N/A N/A N/A self usage usage N/A enable_interspersed_args N/A N/A self N/A N/A N/A N/A self allow_interspersed_args 1 N/A disable_interspersed_args N/A N/A self N/A N/A N/A N/A self allow_interspersed_args 0 N/A set_conflict_handler N/A N/A self handler N/A N/A N/A N/A handler N/A ignore error resolve N/A N/A ValueError N/A invalid conflict_resolution value %r handler N/A N/A self conflict_handler handler N/A set_default N/A N/A self dest value N/A N/A N/A N/A N/A self defaults N/A dest value N/A set_defaults N/A N/A self N/A kwargs N/A N/A N/A N/A N/A self defaults update kwargs N/A _check_conflict N/A N/A self option N/A N/A N/A conflict_opts N/A N/A opt N/A option _short_opts N/A N/A N/A N/A N/A self _short_opt has_key opt N/A N/A N/A N/A conflict_opts append N/A opt N/A N/A self _short_opt N/A opt N/A opt N/A option _long_opts N/A N/A N/A N/A N/A self _long_opt has_key opt N/A N/A N/A N/A conflict_opts append N/A opt N/A N/A self _long_opt N/A opt N/A conflict_opts N/A N/A handler N/A self conflict_handler N/A N/A handler ignore N/A N/A N/A N/A N/A handler error N/A N/A N/A OptionConflictError N/A conflicting option string(s): %s N/A N/A ,  join N/A N/A co N/A 0 N/A co conflict_opts option N/A N/A N/A handler resolve N/A N/A N/A opt c_option conflict_opts N/A N/A N/A N/A opt startswith -- N/A N/A N/A N/A N/A c_option _long_opts remove opt N/A N/A N/A self _long_opt N/A opt N/A N/A N/A N/A N/A c_option _short_opts remove opt N/A N/A N/A self _short_opt N/A opt N/A N/A N/A N/A c_option _short_opts N/A c_option _long_opts N/A N/A N/A N/A N/A self option_list remove c_option N/A add_option N/A N/A self N/A args kwargs N/A N/A add_option(Option)
           add_option(opt_str, ..., kwarg=val, ...)
         N/A N/A N/A type N/A args N/A 0 N/A types StringType N/A N/A option N/A N/A self option_class args kwargs N/A N/A N/A N/A N/A len args 1 N/A kwargs N/A N/A option N/A args N/A 0 N/A N/A N/A isinstance option Option N/A N/A TypeError N/A not an Option instance: %r option N/A N/A TypeError invalid arguments N/A N/A N/A self _check_conflict option N/A N/A N/A N/A self option_list append option N/A opt N/A option _short_opts N/A N/A N/A N/A self _short_opt N/A opt option N/A opt N/A option _long_opts N/A N/A N/A N/A self _long_opt N/A opt option N/A N/A N/A N/A self _long_opts append opt N/A N/A N/A option dest None N/A N/A N/A N/A option default NO_DEFAULT N/A N/A N/A N/A self defaults N/A N/A option dest N/A option default N/A N/A N/A N/A N/A N/A self defaults has_key N/A option dest N/A N/A N/A N/A self defaults N/A N/A option dest None N/A add_options N/A N/A self option_list N/A N/A N/A option option_list N/A N/A N/A N/A self add_option option N/A get_option N/A N/A self opt_str N/A N/A N/A N/A N/A N/A N/A self _short_opt get opt_str N/A N/A N/A self _long_opt get opt_str N/A has_option N/A N/A self opt_str N/A N/A N/A N/A N/A N/A N/A self _short_opt has_key opt_str N/A N/A N/A self _long_opt has_key opt_str N/A remove_option N/A N/A self opt_str N/A N/A N/A option N/A N/A N/A self _short_opt get opt_str N/A N/A option None N/A N/A option N/A N/A N/A self _long_opt get opt_str N/A N/A option None N/A N/A N/A ValueError N/A no such option %r opt_str N/A opt N/A option _short_opts N/A N/A N/A N/A self _short_opt N/A opt N/A opt N/A option _long_opts N/A N/A N/A N/A self _long_opt N/A opt N/A N/A N/A N/A self _long_opts remove opt N/A N/A N/A N/A self option_list remove option N/A _get_args N/A N/A self args N/A N/A N/A N/A args None N/A N/A N/A N/A sys argv N/A 1 N/A N/A N/A args N/A N/A parse_args N/A N/A self args values N/A None None N/A N/A 
        parse_args(args : [string] = sys.argv[1:],
                   values : Values = None)
        -> (values : Values, args : [string])

        Parse the command-line options found in 'args' (default:
        sys.argv[1:]).  Any errors result in a call to 'error()', which
        by default prints the usage message to stderr and calls
        sys.exit() with an error message.  On success returns a pair
        (values, args) where 'values' is an Values instance (with all
        your option values) and 'args' is the list of arguments left
        over after parsing options.
         N/A rargs N/A N/A self _get_args args N/A N/A values None N/A N/A values N/A Values N/A self defaults N/A N/A self rargs rargs N/A N/A self largs largs N/A N/A N/A self values values N/A stop 0 N/A N/A rargs N/A stop N/A N/A N/A N/A stop N/A N/A self _process_arg largs rargs values N/A N/A N/A N/A BadOptionError OptionValueError N/A err N/A N/A N/A N/A self error N/A err msg N/A args N/A largs rargs N/A N/A N/A self check_values values args N/A check_values N/A N/A self values args N/A N/A N/A 
        check_values(values : Values, args : [string])
        -> (values : Values, args : [string])

        Check that the supplied option values and leftover arguments are
        valid.  Returns the option values and leftover arguments
        (possibly adjusted, possibly completely new -- whatever you
        like).  Default implementation just returns the passed-in
        values; subclasses may override as desired.
         N/A N/A values args N/A _process_arg N/A N/A self largs rargs values N/A N/A N/A _process_args(largs : [string],
                         rargs : [string],
                         values : Values)
           -> stop : boolean

        Process a single command-line argument, consuming zero or more
        arguments.  The next argument to process is rargs[0], which will
        almost certainly be consumed from rargs.  (It might wind up in
        largs, or it might affect a value in values, or -- if a callback
        is involved -- almost anything might happen.  It will not be
        consumed if it is a non-option argument and
        allow_interspersed_args is false.)  More arguments from rargs
        may also be consumed, depending on circumstances.

        Returns true if option processing should stop after this
        argument is processed.
         N/A arg N/A rargs N/A 0 N/A N/A arg -- N/A N/A N/A rargs N/A 0 N/A 1 N/A N/A N/A N/A arg N/A 0 2 -- N/A N/A N/A N/A self _process_long_opt rargs values N/A N/A N/A N/A N/A arg N/A 1 - N/A N/A len arg 1 N/A N/A N/A N/A self _process_short_opts rargs values N/A N/A N/A self allow_interspersed_args N/A N/A N/A N/A largs append arg N/A N/A rargs N/A 0 N/A N/A 1 N/A 0 N/A _match_long_opt N/A N/A self opt N/A N/A N/A _match_long_opt(opt : string) -> string

        Determine which long option string 'opt' matches, ie. which one
        it is an unambiguous abbrevation for.  Raises BadOptionError if
        'opt' doesn't unambiguously match any long option string.
         N/A N/A _match_abbrev opt N/A self _long_opts N/A _process_long_opt N/A N/A self rargs values N/A N/A N/A arg N/A N/A rargs pop 0 N/A N/A = arg N/A N/A N/A opt next_arg N/A N/A arg split = 1 N/A N/A N/A rargs insert 0 next_arg N/A had_explicit_value 1 N/A N/A opt arg N/A had_explicit_value 0 N/A opt N/A N/A self _match_long_opt opt N/A option N/A N/A self _long_opt N/A opt N/A N/A N/A option takes_value N/A N/A nargs N/A option nargs N/A N/A N/A len rargs nargs N/A N/A N/A nargs 1 N/A N/A N/A N/A self error N/A %s option requires a value opt N/A N/A N/A N/A self error N/A %s option requires %d values N/A opt nargs N/A N/A N/A nargs 1 N/A N/A value N/A N/A rargs pop 0 N/A N/A value N/A tuple N/A rargs N/A 0 nargs N/A N/A rargs N/A 0 nargs N/A N/A had_explicit_value N/A N/A N/A N/A self error N/A %s option does not take a value opt N/A N/A value None N/A N/A N/A option process opt value values self N/A _process_short_opts N/A N/A self rargs values N/A N/A N/A arg N/A N/A rargs pop 0 N/A stop 0 N/A i 1 N/A ch N/A arg N/A 1 N/A N/A opt N/A - ch N/A option N/A N/A N/A self _short_opt get opt N/A i 1 N/A N/A option N/A N/A N/A N/A self error N/A no such option: %s opt N/A N/A N/A option takes_value N/A N/A N/A i N/A len arg N/A N/A N/A N/A rargs insert 0 N/A arg N/A i N/A stop 1 N/A nargs N/A option nargs N/A N/A N/A len rargs nargs N/A N/A N/A nargs 1 N/A N/A N/A N/A self error N/A %s option requires a value opt N/A N/A N/A N/A self error N/A %s option requires %s values N/A opt nargs N/A N/A N/A nargs 1 N/A N/A value N/A N/A rargs pop 0 N/A N/A value N/A tuple N/A rargs N/A 0 nargs N/A N/A rargs N/A 0 nargs N/A N/A value None N/A N/A N/A option process opt value values self N/A stop N/A N/A N/A error N/A N/A self msg N/A N/A N/A N/A N/A self print_usage N/A sys stderr N/A N/A N/A sys exit N/A %s: error: %s N/A N/A get_prog_name msg N/A print_usage N/A N/A self file N/A None N/A N/A N/A self usage N/A N/A usage N/A N/A N/A self usage replace %prog N/A get_prog_name N/A file usage N/A file N/A print_version N/A N/A self file N/A None N/A N/A N/A self version N/A N/A version N/A N/A N/A self version replace %prog N/A get_prog_name N/A file version N/A print_help N/A N/A self file N/A None N/A distutils.fancy_getopt wrap_text N/A N/A file None N/A N/A file N/A sys stdout N/A N/A N/A self print_usage file N/A file options: N/A width 78 N/A option_help N/A N/A lengths N/A N/A option N/A self option_list N/A N/A takes_value N/A N/A option takes_value N/A takes_value N/A N/A metavar N/A N/A option metavar N/A N/A N/A option dest upper N/A opts N/A N/A N/A N/A option help SUPPRESS_HELP N/A N/A N/A takes_value N/A N/A sopt N/A option _short_opts N/A N/A N/A N/A opts append N/A sopt metavar N/A lopt N/A option _long_opts N/A N/A N/A N/A opts append N/A N/A lopt = metavar N/A N/A opt N/A N/A option _short_opts N/A option _long_opts N/A N/A N/A N/A opts append opt N/A opts N/A N/A ,  join opts N/A N/A N/A option_help append N/A opts N/A option help N/A N/A N/A lengths append N/A len opts N/A max_opts N/A min N/A max lengths 20 N/A N/A opts help option_help N/A N/A indent_rest N/A N/A 2 max_opts 2 N/A help_width N/A width indent_rest N/A N/A N/A len opts max_opts N/A N/A opts N/A N/A opts N/A indent_first indent_rest N/A N/A opts N/A   %-*s   N/A max_opts opts N/A indent_first 0 N/A N/A N/A file write opts N/A help N/A N/A help_lines N/A wrap_text help help_width N/A file N/A %*s%s N/A indent_first N/A help_lines N/A 0 N/A line N/A help_lines N/A 1 N/A N/A file N/A %*s%s N/A indent_rest line N/A N/A N/A N/A opts N/A -1 N/A N/A N/A N/A file write N/A N/A _match_abbrev N/A N/A s words N/A N/A N/A _match_abbrev(s : string, words : [string]) -> string

    Returns the string in 'words' for which 's' is an unambiguous
    abbreviation.  If 's' is found to be ambiguous or doesn't match any
    of 'words', raises BadOptionError.
     N/A match None N/A word words N/A N/A N/A N/A N/A word startswith s N/A N/A N/A N/A s word N/A N/A word N/A match N/A N/A N/A BadOptionError N/A ambiguous option: %s (%s, %s, ...?) N/A s match word N/A match word N/A match N/A N/A match N/A N/A N/A BadOptionError N/A no such option: %s s N/A