Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpAdd ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword NameLoad keyword NameLoad keyword Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword NameLoad keyword Str NameLoad decorator_list
N/A N/A Module to load flags.

   .. moduleauthor:: Xiaodong Wang <xiaodongwang@huawei.com>
 N/A sys optparse OptionParser Flags N/A object N/A N/A Class to store flags. N/A PARSER N/A OptionParser N/A PARSED_OPTIONS None parse_args N/A N/A cls N/A N/A N/A parse args. N/A N/A options argv N/A N/A N/A Flags PARSER parse_args N/A N/A sys argv N/A N/A N/A N/A sys argv N/A 0 argv N/A N/A Flags PARSED_OPTIONS options N/A classmethod __getattr__ N/A N/A self name N/A N/A N/A N/A N/A Flags PARSED_OPTIONS N/A hasattr N/A Flags PARSED_OPTIONS name N/A N/A N/A getattr N/A Flags PARSED_OPTIONS name N/A option N/A N/A Flags PARSER option_list N/A N/A N/A N/A option dest name N/A N/A N/A option default N/A N/A AttributeError N/A Option instance has no attribute %s name N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A N/A Flags PARSED_OPTIONS N/A hasattr N/A Flags PARSED_OPTIONS name N/A N/A N/A setattr N/A Flags PARSED_OPTIONS name value N/A N/A option N/A N/A Flags PARSER option_list N/A N/A N/A N/A option dest name N/A N/A N/A option default value N/A N/A N/A N/A object __setattr__ self name value N/A N/A N/A OPTIONS N/A Flags init N/A N/A N/A N/A N/A Init flag parsing. N/A N/A N/A OPTIONS parse_args N/A add N/A N/A flagname N/A kwargs N/A N/A Add a flag name and its setting.

    :param flagname: flag name declared in cmd as --<flagname>=...
    :type flagname: str
     N/A N/A N/A N/A Flags PARSER add_option N/A --%s flagname dest flagname kwargs N/A add_bool N/A N/A flagname default N/A True kwargs N/A N/A Add a bool flag name and its setting.

    :param flagname: flag name declared in cmd as --[no]<flagname>.
    :type flagname: str
    :param default: default value
    :type default: bool
     N/A N/A N/A N/A Flags PARSER add_option N/A --%s flagname dest flagname default default action store_true kwargs N/A N/A N/A N/A Flags PARSER add_option N/A --no%s flagname dest flagname action store_false kwargs N/A