Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str NameLoad ListLoad ListLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Dict Str Str NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr If Call AttributeLoad NameLoad attr Str body Return Call NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Return Call NameLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Return Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list NameLoad decorator_list
N/A N/A re N/A os exceptions CleoException inputs.input_argument InputArgument inputs.input_option InputOption Parser N/A object N/A parse N/A N/A cls expression N/A N/A N/A 
        Parse the given console command definition into a dict.

        :param expression: The expression to parse
        :type expression: str

        :rtype: dict
         N/A parsed N/A name arguments options None N/A N/A N/A N/A N/A N/A expression strip N/A N/A N/A CleoException Console command signature is empty. N/A expression N/A N/A expression replace N/A os linesep N/A matches N/A N/A re match [^\s]+ expression N/A N/A matches N/A N/A N/A CleoException Unable to determine command name from signature. N/A name N/A N/A matches group 0 N/A N/A parsed N/A name name N/A tokens N/A N/A re findall \{\s*(.*?)\s*\} expression N/A tokens N/A N/A N/A N/A parsed update N/A N/A cls _parameters tokens N/A parsed N/A classmethod _parameters N/A N/A cls tokens N/A N/A N/A 
        Extract all of the parameters from the tokens.

        :param tokens: The tokens to extract the parameters from
        :type tokens: list

        :rtype: dict
         N/A arguments N/A N/A options N/A N/A token tokens N/A N/A N/A N/A N/A token startswith -- N/A N/A N/A N/A arguments append N/A N/A cls _parse_argument token N/A N/A N/A N/A options append N/A N/A cls _parse_option token N/A N/A arguments options arguments options N/A classmethod _parse_argument N/A N/A cls token N/A N/A N/A 
        Parse an argument expression.

        :param token: The argument expression
        :type token: str

        :rtype: InputArgument
         N/A description None N/A validator None N/A N/A  :  token N/A N/A N/A token description N/A tuple N/A N/A token split  :  2 N/A token N/A N/A token strip N/A description N/A N/A description strip N/A matches N/A N/A re match (.*)\((.*?)\) token N/A matches N/A N/A token N/A N/A N/A N/A matches group 1 strip N/A validator N/A N/A N/A N/A matches group 2 strip N/A N/A N/A token endswith ?* N/A N/A N/A InputArgument N/A N/A token rstrip ?* N/A InputArgument IS_LIST description N/A N/A N/A N/A token endswith * N/A N/A N/A InputArgument N/A N/A token rstrip * N/A N/A InputArgument IS_LIST N/A InputArgument REQUIRED description N/A N/A N/A N/A token endswith ? N/A N/A N/A InputArgument N/A N/A token rstrip ? N/A InputArgument OPTIONAL description N/A matches N/A N/A re match (.+)\=(.+) token N/A matches N/A N/A N/A InputArgument N/A N/A matches group 1 N/A InputArgument OPTIONAL description N/A N/A matches group 2 N/A N/A InputArgument token N/A InputArgument REQUIRED description validator validator N/A classmethod _parse_option N/A N/A cls token N/A N/A N/A 
        Parse an option expression.

        :param token: The option expression
        :type token: str

        :rtype: InputOption
         N/A description None N/A validator None N/A N/A  :  token N/A N/A N/A token description N/A tuple N/A N/A token split  :  2 N/A token N/A N/A token strip N/A description N/A N/A description strip N/A matches N/A N/A re match (.*)\((.*?)\) token N/A matches N/A N/A token N/A N/A N/A N/A matches group 1 strip N/A validator N/A N/A N/A N/A matches group 2 strip N/A shortcut None N/A matches N/A N/A re split \s*\|\s* token 2 N/A N/A N/A len matches 1 N/A N/A shortcut N/A N/A N/A matches N/A 0 lstrip - N/A token N/A matches N/A 1 N/A default None N/A mode N/A InputOption VALUE_NONE N/A N/A N/A token endswith =* N/A N/A mode N/A N/A InputOption VALUE_REQUIRED N/A InputOption VALUE_IS_LIST N/A token N/A N/A token rstrip =* N/A N/A N/A N/A token endswith =?* N/A N/A mode N/A N/A InputOption VALUE_OPTIONAL N/A InputOption VALUE_IS_LIST N/A token N/A N/A token rstrip =?* N/A N/A N/A N/A token endswith =? N/A N/A mode N/A InputOption VALUE_OPTIONAL N/A token N/A N/A token rstrip =? N/A N/A N/A N/A token endswith = N/A N/A mode N/A InputOption VALUE_REQUIRED N/A token N/A N/A token rstrip = N/A matches N/A N/A re match (.+)(\=[\?\*]*)(.+) token N/A matches N/A N/A token N/A N/A matches group 1 N/A operator N/A N/A matches group 2 N/A default N/A N/A matches group 3 N/A N/A operator =* N/A N/A mode N/A N/A InputOption VALUE_REQUIRED N/A InputOption VALUE_IS_LIST N/A N/A N/A operator =?* N/A N/A mode N/A N/A InputOption VALUE_OPTIONAL N/A InputOption VALUE_IS_LIST N/A N/A N/A operator =? N/A N/A mode N/A InputOption VALUE_OPTIONAL N/A N/A N/A operator = N/A N/A mode N/A InputOption VALUE_REQUIRED N/A N/A InputOption token shortcut mode description default validator validator N/A classmethod N/A