Module Expr Str Import alias alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Call NameLoad NameLoad AugAssignSub NameStore Num Assign NameStore SubscriptLoad NameLoad Index NameLoad While CompareGtE NameLoad Num body If Call AttributeLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num attr Str body AugAssignSub NameStore Num orelse Break Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Assign NameStore NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass If NameLoad body For TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return Assign NameStore NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return Str Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam 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 NameLoad body Expr Str If BoolOpAnd NameLoad CompareIsNot Call NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For TupleStore NameStore NameStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Num NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr orelse Assign NameStore Call NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Str Assign NameStore ListLoad For NameStore NameLoad body If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Return BinOpMod Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpAdd Str NameLoad orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return BinOpMod Str TupleLoad NameLoad Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return BoolOpOr SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareIn NameLoad AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str NameLoad body Return BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Str For NameStore NameLoad body If CompareIn NameLoad Str body Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Str Return NameLoad decorator_list
N/A N/A 
No public APIs are provided by this module. Internal use only.

This module implements dynamic tab-completion for any command that uses
twisted.python.usage. Currently, only zsh is supported. Bash support may
be added in the future.

Maintainer: Eric P. Mangold - twisted AT teratorn DOT org

In order for zsh completion to take place the shell must be able to find an
appropriate "stub" file ("completion function") that invokes this code and
displays the results to the user.

The stub used for Twisted commands is in the file C{twisted-completion.zsh},
which is also included in the official Zsh distribution at
C{Completion/Unix/Command/_twisted}. Use this file as a basis for completion
functions for your own commands. You should only need to change the first line
to something like C{#compdef mycommand}.

The main public documentation exists in the L{twisted.python.usage.Options}
docstring, the L{twisted.python.usage.Completions} docstring, and the 
Options howto.
 N/A itertools getopt inspect twisted.python reflect util usage shellComplete N/A N/A config cmdName words shellCompFile N/A N/A N/A 
    Perform shell completion.

    A completion function (shell script) is generated for the requested
    shell and written to C{shellCompFile}, typically C{stdout}. The result
    is then eval'd by the shell to produce the desired completions.

    @type config: L{twisted.python.usage.Options}
    @param config: The L{twisted.python.usage.Options} instance to generate
        completions for.

    @type cmdName: C{str}
    @param cmdName: The name of the command we're generating completions for.
        In the case of zsh, this is used to print an appropriate
        "#compdef $CMD" line at the top of the output. This is
        not necessary for the functionality of the system, but it
        helps in debugging, since the output we produce is properly
        formed and may be saved in a file and used as a stand-alone
        completion function.

    @type words: C{list} of C{str}
    @param words: The raw command-line words passed to use by the shell
        stub function. argv[0] has already been stripped off.

    @type shellCompFile: C{file}
    @param shellCompFile: The file to write completion data to.
     N/A N/A shellName position N/A N/A N/A words N/A -1 split : N/A position N/A int position N/A position 2 N/A cWord N/A words N/A position N/A N/A position 1 N/A N/A N/A N/A N/A words N/A N/A position 1 startswith - N/A N/A position 1 N/A N/A N/A words N/A words N/A position N/A subCommands N/A getattr config subCommands None N/A subCommands N/A N/A args None N/A N/A N/A N/A opts args N/A N/A getopt getopt words N/A config shortOpt N/A config longOpt N/A N/A N/A N/A getopt error N/A N/A N/A args N/A N/A N/A cmd short parser doc N/A config subCommands N/A N/A N/A N/A N/A args N/A 0 cmd N/A N/A args N/A 0 short N/A N/A subOptions N/A parser N/A N/A subOptions parent config N/A gen N/A ZshSubcommandBuilder subOptions config cmdName shellCompFile N/A N/A N/A gen write N/A N/A genSubs True N/A N/A N/A cWord startswith - N/A N/A genSubs False N/A gen N/A ZshBuilder config cmdName shellCompFile N/A N/A N/A gen write genSubs genSubs N/A N/A gen N/A ZshBuilder config cmdName shellCompFile N/A N/A N/A gen write N/A SubcommandAction N/A N/A usage Completer N/A _shellCode N/A N/A self optName shellType N/A N/A N/A N/A shellType N/A usage _ZSH N/A N/A *::subcmd:->subcmd N/A N/A NotImplementedError N/A Unknown shellType %r N/A shellType N/A N/A ZshBuilder N/A object N/A N/A 
    Constructs zsh code that will complete options for a given usage.Options
    instance, possibly including a list of subcommand names.

    Completions for options to subcommands won't be generated because this
    class will never be used if the user is completing options for a specific
    subcommand. (See L{ZshSubcommandBuilder} below)

    @type options: L{twisted.python.usage.Options}
    @ivar options: The L{twisted.python.usage.Options} instance defined for this
        command.

    @type cmdName: C{str}
    @ivar cmdName: The name of the command we're generating completions for.

    @type file: C{file}
    @ivar file: The C{file} to write the completion function to.
     __init__ N/A N/A self options cmdName file N/A N/A N/A N/A self options options N/A N/A self cmdName cmdName N/A N/A self file file N/A write N/A N/A self genSubs N/A True N/A N/A 
        Generate the completion function and write it to the output file
        @return: C{None}

        @type genSubs: C{bool}
        @param genSubs: Flag indicating whether or not completions for the list
            of subcommand should be generated. Only has an effect
            if the C{subCommands} attribute has been defined on the
            L{twisted.python.usage.Options} instance.
         N/A N/A genSubs N/A N/A getattr N/A self options subCommands None None N/A N/A gen N/A ZshArgumentsGenerator N/A self options N/A self cmdName N/A self file N/A N/A N/A N/A gen extraActions insert 0 N/A SubcommandAction N/A N/A N/A gen write N/A N/A N/A N/A self file write local _zsh_subcmds_array
_zsh_subcmds_array=(
 N/A N/A cmd short parser desc N/A N/A self options subCommands N/A N/A N/A N/A N/A self file write N/A "%s:%s"
 N/A cmd desc N/A N/A N/A N/A self file write )

 N/A N/A N/A N/A self file write _describe "sub-command" _zsh_subcmds_array
 N/A N/A gen N/A ZshArgumentsGenerator N/A self options N/A self cmdName N/A self file N/A N/A N/A gen write N/A N/A ZshSubcommandBuilder N/A ZshBuilder N/A N/A 
    Constructs zsh code that will complete options for a given usage.Options
    instance, and also for a single sub-command. This will only be used in
    the case where the user is completing options for a specific subcommand.

    @type subOptions: L{twisted.python.usage.Options}
    @ivar subOptions: The L{twisted.python.usage.Options} instance defined for
        the sub command.
     __init__ N/A N/A self subOptions N/A args N/A N/A N/A self subOptions subOptions N/A N/A N/A ZshBuilder __init__ self args N/A write N/A N/A self N/A N/A N/A 
        Generate the completion function and write it to the output file
        @return: C{None}
         N/A gen N/A ZshArgumentsGenerator N/A self options N/A self cmdName N/A self file N/A N/A N/A N/A gen extraActions insert 0 N/A SubcommandAction N/A N/A N/A gen write N/A gen N/A ZshArgumentsGenerator N/A self subOptions N/A self cmdName N/A self file N/A N/A N/A gen write N/A N/A ZshArgumentsGenerator N/A object N/A N/A 
    Generate a call to the zsh _arguments completion function
    based on data in a usage.Options instance

    @type options: L{twisted.python.usage.Options}
    @ivar options: The L{twisted.python.usage.Options} instance to generate for

    @type cmdName: C{str}
    @ivar cmdName: The name of the command we're generating completions for.

    @type file: C{file}
    @ivar file: The C{file} to write the completion function to

    The following non-constructor variables are populated by this class
    with data gathered from the C{Options} instance passed in, and its
    base classes.

    @type descriptions: C{dict}
    @ivar descriptions: A dict mapping long option names to alternate
        descriptions. When this variable is defined, the descriptions
        contained here will override those descriptions provided in the
        optFlags and optParameters variables.

    @type multiUse: C{list}
    @ivar multiUse: An iterable containing those long option names which may
        appear on the command line more than once. By default, options will
        only be completed one time.

    @type mutuallyExclusive: C{list} of C{tuple}
    @ivar mutuallyExclusive: A sequence of sequences, with each sub-sequence
        containing those long option names that are mutually exclusive. That is,
        those options that cannot appear on the command line together.

    @type optActions: C{dict}
    @ivar optActions: A dict mapping long option names to shell "actions".
        These actions define what may be completed as the argument to the
        given option, and should be given as instances of
        L{twisted.python.usage.Completer}.

        Callables may instead be given for the values in this dict. The
        callable should accept no arguments, and return a C{Completer}
        instance used as the action.

    @type extraActions: C{list} of C{twisted.python.usage.Completer}
    @ivar extraActions: Extra arguments are those arguments typically
        appearing at the end of the command-line, which are not associated
        with any particular named option. That is, the arguments that are
        given to the parseArgs() method of your usage.Options subclass.
     __init__ N/A N/A self options cmdName file N/A N/A N/A N/A self options options N/A N/A self cmdName cmdName N/A N/A self file file N/A N/A self descriptions N/A N/A N/A self multiUse N/A set N/A N/A self mutuallyExclusive N/A N/A N/A self optActions N/A N/A N/A self extraActions N/A N/A cls N/A reversed N/A N/A inspect getmro N/A options __class__ N/A N/A data N/A getattr cls compData None N/A data N/A N/A N/A N/A N/A self descriptions update N/A data descriptions N/A N/A N/A N/A self optActions update N/A data optActions N/A N/A N/A N/A self multiUse update N/A data multiUse N/A N/A N/A N/A self mutuallyExclusive extend N/A data mutuallyExclusive N/A N/A data extraActions N/A N/A N/A self extraActions N/A data extraActions N/A aCL N/A reflect accumulateClassList N/A aCD N/A reflect accumulateClassDict N/A optFlags N/A N/A optParams N/A N/A N/A aCL N/A options __class__ optFlags optFlags N/A N/A aCL N/A options __class__ optParameters optParams N/A N/A i optList N/A enumerate optFlags N/A N/A N/A N/A len optList 3 N/A N/A N/A optFlags N/A i N/A N/A util padTo 3 optList N/A N/A i optList N/A enumerate optParams N/A N/A N/A N/A len optList 5 N/A N/A N/A optParams N/A i N/A N/A util padTo 5 optList N/A N/A self optFlags optFlags N/A N/A self optParams optParams N/A paramNameToDefinition N/A N/A optList optParams N/A N/A N/A paramNameToDefinition N/A N/A optList N/A 0 N/A optList N/A 1 N/A N/A self paramNameToDefinition paramNameToDefinition N/A flagNameToDefinition N/A N/A optList optFlags N/A N/A N/A flagNameToDefinition N/A N/A optList N/A 0 N/A optList N/A 1 N/A N/A self flagNameToDefinition flagNameToDefinition N/A allOptionsNameToDefinition N/A N/A N/A N/A allOptionsNameToDefinition update paramNameToDefinition N/A N/A N/A allOptionsNameToDefinition update flagNameToDefinition N/A N/A self allOptionsNameToDefinition allOptionsNameToDefinition N/A N/A N/A self addAdditionalOptions N/A N/A N/A self verifyZshNames N/A N/A self excludes N/A N/A self makeExcludesDict N/A write N/A N/A self N/A N/A N/A 
        Write the zsh completion code to the file given to __init__
        @return: C{None}
         N/A N/A N/A self writeHeader N/A N/A N/A self writeExtras N/A N/A N/A self writeOptions N/A N/A N/A self writeFooter N/A writeHeader N/A N/A self N/A N/A N/A 
        This is the start of the code that calls _arguments
        @return: C{None}
         N/A N/A N/A N/A self file write N/A #compdef %s

_arguments -s -A "-*" \
 N/A N/A self cmdName N/A writeOptions N/A N/A self N/A N/A N/A 
        Write out zsh code for each option in this command
        @return: C{None}
         N/A optNames N/A N/A N/A self allOptionsNameToDefinition keys N/A N/A N/A optNames sort N/A longname optNames N/A N/A N/A N/A self writeOpt longname N/A writeExtras N/A N/A self N/A N/A N/A 
        Write out completion information for extra arguments appearing on the
        command-line. These are extra positional arguments not associated
        with a named option. That is, the stuff that gets passed to
        Options.parseArgs().

        @return: C{None}

        @raises: ValueError: if C{Completer} with C{repeat=True} is found and
            is not the last item in the C{extraActions} list.
         N/A N/A i action N/A enumerate N/A self extraActions N/A N/A descr N/A N/A action _descr N/A N/A descr N/A action _descr N/A N/A N/A action _repeat N/A i N/A N/A len N/A self extraActions 1 N/A N/A N/A ValueError Completer with repeat=True must be last item in Options.extraActions N/A N/A N/A N/A self file write N/A escape N/A N/A action _shellCode N/A usage _ZSH N/A N/A N/A N/A self file write  \
 N/A writeFooter N/A N/A self N/A N/A N/A 
        Write the last bit of code that finishes the call to _arguments
        @return: C{None}
         N/A N/A N/A N/A self file write && return 0
 N/A verifyZshNames N/A N/A self N/A N/A N/A 
        Ensure that none of the option names given in the metadata are typoed
        @return: C{None}
        @raise ValueError: Raised if unknown option names have been found.
         err N/A N/A name N/A N/A N/A N/A ValueError N/A Unknown option name "%s" found while
examining Completions instances on %s N/A name N/A self options N/A N/A name N/A N/A itertools chain N/A self descriptions N/A self optActions N/A self multiUse N/A N/A N/A name N/A self allOptionsNameToDefinition N/A N/A N/A err name N/A seq N/A self mutuallyExclusive N/A N/A name seq N/A N/A N/A name N/A self allOptionsNameToDefinition N/A N/A N/A err name N/A excludeStr N/A N/A self longname buildShort N/A False N/A N/A 
        Generate an "exclusion string" for the given option

        @type longname: C{str}
        @param longname: The long option name (e.g. "verbose" instead of "v")

        @type buildShort: C{bool}
        @param buildShort: May be True to indicate we're building an excludes
            string for the short option that correspondes to the given long opt.

        @return: The generated C{str}
         N/A N/A longname N/A self excludes N/A N/A exclusions N/A N/A N/A N/A self excludes N/A longname copy N/A N/A exclusions N/A set N/A N/A longname N/A self multiUse N/A N/A N/A buildShort False N/A N/A short N/A N/A self getShortOption longname N/A N/A short None N/A N/A N/A N/A exclusions add short N/A N/A N/A N/A exclusions add longname N/A N/A exclusions N/A N/A N/A strings N/A N/A optName exclusions N/A N/A N/A N/A len optName 1 N/A N/A N/A N/A strings append N/A - optName N/A N/A N/A N/A strings append N/A -- optName N/A N/A N/A strings sort N/A N/A (%s) N/A N/A join strings N/A makeExcludesDict N/A N/A self N/A N/A N/A 
        @return: A C{dict} that maps each option name appearing in
            self.mutuallyExclusive to a list of those option names that is it
            mutually exclusive with (can't appear on the cmd line with).
         N/A longToShort N/A N/A optList N/A N/A itertools chain N/A self optParams N/A self optFlags N/A N/A N/A N/A optList N/A 1 None N/A N/A N/A longToShort N/A N/A optList N/A 0 N/A optList N/A 1 N/A excludes N/A N/A lst N/A self mutuallyExclusive N/A N/A N/A i longname N/A enumerate lst N/A N/A tmp N/A set N/A N/A lst N/A i N/A lst N/A N/A i 1 N/A name N/A N/A tmp copy N/A N/A N/A name longToShort N/A N/A N/A N/A tmp add N/A longToShort N/A name N/A N/A longname excludes N/A N/A N/A excludes N/A longname N/A N/A N/A excludes N/A longname union tmp N/A N/A N/A excludes N/A longname tmp N/A excludes N/A writeOpt N/A N/A self longname N/A N/A N/A 
        Write out the zsh code for the given argument. This is just part of the
        one big call to _arguments

        @type longname: C{str}
        @param longname: The long option name (e.g. "verbose" instead of "v")

        @return: C{None}
         N/A N/A longname N/A self flagNameToDefinition N/A N/A longField N/A --%s longname N/A N/A longField N/A --%s= longname N/A short N/A N/A self getShortOption longname N/A N/A short None N/A N/A shortField N/A - short N/A N/A shortField N/A descr N/A N/A self getDescription longname N/A descriptionField N/A N/A descr replace [ \[ N/A descriptionField N/A N/A descriptionField replace ] \] N/A descriptionField N/A [%s] descriptionField N/A actionField N/A N/A self getAction longname N/A N/A longname N/A self multiUse N/A N/A multiField * N/A N/A multiField N/A longExclusionsField N/A N/A self excludeStr longname N/A short N/A N/A shortExclusionsField N/A N/A self excludeStr longname buildShort True N/A N/A N/A N/A self file write N/A escape N/A %s%s%s%s%s N/A shortExclusionsField multiField shortField descriptionField actionField N/A N/A N/A N/A self file write  \
 N/A N/A N/A N/A self file write N/A escape N/A %s%s%s%s%s N/A longExclusionsField multiField longField descriptionField actionField N/A N/A N/A N/A self file write  \
 N/A getAction N/A N/A self longname N/A N/A N/A 
        Return a zsh "action" string for the given argument
        @return: C{str}
         N/A N/A longname N/A self optActions N/A N/A N/A callable N/A N/A self optActions N/A longname N/A N/A action N/A N/A N/A self optActions N/A longname N/A N/A action N/A N/A self optActions N/A longname N/A N/A N/A action _shellCode longname N/A usage _ZSH N/A N/A longname N/A self paramNameToDefinition N/A N/A N/A :%s:_files N/A longname N/A N/A getDescription N/A N/A self longname N/A N/A N/A 
        Return the description to be used for this argument
        @return: C{str}
         N/A N/A longname N/A self descriptions N/A N/A N/A N/A self descriptions N/A longname N/A N/A N/A descr N/A N/A N/A self flagNameToDefinition N/A longname N/A 1 N/A N/A N/A KeyError N/A N/A N/A N/A descr N/A N/A N/A self paramNameToDefinition N/A longname N/A 2 N/A N/A N/A KeyError N/A N/A descr None N/A N/A descr None N/A N/A descr N/A longMangled N/A N/A longname replace - _ N/A obj N/A getattr N/A self options N/A opt_%s longMangled None N/A N/A obj None N/A N/A descr N/A descrFromDoc obj N/A N/A descr None N/A N/A descr N/A longname N/A getShortOption N/A N/A self longname N/A N/A N/A 
        Return the short option letter or None
        @return: C{str} or C{None}
         N/A optList N/A N/A self allOptionsNameToDefinition N/A longname N/A N/A N/A optList N/A 0 None N/A addAdditionalOptions N/A N/A self N/A N/A N/A 
        Add additional options to the optFlags and optParams lists.
        These will be defined by 'opt_foo' methods of the Options subclass
        @return: C{None}
         N/A methodsDict N/A N/A N/A N/A reflect accumulateMethods N/A self options methodsDict opt_ N/A methodToShort N/A N/A name N/A N/A methodsDict copy N/A N/A N/A N/A len name 1 N/A N/A N/A methodToShort N/A N/A methodsDict N/A name name N/A N/A methodsDict N/A name N/A N/A methodName methodObj N/A N/A methodsDict items N/A N/A longname N/A N/A methodName replace _ - N/A N/A longname N/A self allOptionsNameToDefinition N/A N/A N/A descr N/A N/A self getDescription longname N/A short None N/A N/A methodObj methodToShort N/A N/A short N/A methodToShort N/A methodObj N/A reqArgs N/A N/A N/A methodObj im_func func_code co_argcount N/A N/A reqArgs 2 N/A N/A N/A N/A N/A self optParams append N/A longname short None descr N/A N/A N/A self paramNameToDefinition N/A longname N/A short None descr N/A N/A N/A self allOptionsNameToDefinition N/A longname N/A short None descr N/A N/A N/A N/A N/A self optFlags append N/A longname short descr N/A N/A N/A self flagNameToDefinition N/A longname N/A short descr N/A N/A N/A self allOptionsNameToDefinition N/A longname N/A short None descr N/A N/A descrFromDoc N/A N/A obj N/A N/A N/A 
    Generate an appropriate description from docstring of the given object
     N/A N/A N/A N/A obj __doc__ None N/A N/A N/A obj __doc__ isspace N/A N/A None N/A lines N/A N/A N/A x strip N/A x N/A N/A N/A obj __doc__ split N/A x N/A N/A N/A x isspace N/A N/A N/A join lines N/A escape N/A N/A x N/A N/A N/A 
    Shell escape the given string

    Implementation borrowed from now-deprecated commands.mkarg() in the stdlib
     N/A N/A ' x N/A N/A N/A N/A ' x ' N/A s " N/A c x N/A N/A N/A c \$"` N/A N/A s N/A s \ N/A s N/A s c N/A s N/A s " N/A s N/A