Public Member Functions | |
def | __call__ |
def | __call__ |
def | __init__ |
def | __init__ |
Definition at line 894 of file argparse.py.
def argparse::_AppendAction::__init__ | ( | self, | |
option_strings, | |||
dest, | |||
nargs = None , |
|||
const = None , |
|||
default = None , |
|||
type = None , |
|||
choices = None , |
|||
required = False , |
|||
help = None , |
|||
metavar = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 896 of file argparse.py.
00907 : 00908 if nargs == 0: 00909 raise ValueError('nargs for append actions must be > 0; if arg ' 00910 'strings are not supplying the value to append, ' 00911 'the append const action may be more appropriate') 00912 if const is not None and nargs != OPTIONAL: 00913 raise ValueError('nargs must be %r to supply const' % OPTIONAL) 00914 super(_AppendAction, self).__init__( 00915 option_strings=option_strings, 00916 dest=dest, 00917 nargs=nargs, 00918 const=const, 00919 default=default, 00920 type=type, 00921 choices=choices, 00922 required=required, 00923 help=help, 00924 metavar=metavar)
def argparse::_AppendAction::__init__ | ( | self, | |
option_strings, | |||
dest, | |||
nargs = None , |
|||
const = None , |
|||
default = None , |
|||
type = None , |
|||
choices = None , |
|||
required = False , |
|||
help = None , |
|||
metavar = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 908 of file argparse.py.
00918 : 00919 if nargs == 0: 00920 raise ValueError('nargs for append actions must be > 0; if arg ' 00921 'strings are not supplying the value to append, ' 00922 'the append const action may be more appropriate') 00923 if const is not None and nargs != OPTIONAL: 00924 raise ValueError('nargs must be %r to supply const' % OPTIONAL) 00925 super(_AppendAction, self).__init__( 00926 option_strings=option_strings, 00927 dest=dest, 00928 nargs=nargs, 00929 const=const, 00930 default=default, 00931 type=type, 00932 choices=choices, 00933 required=required, 00934 help=help, 00935 metavar=metavar) 00936
def argparse::_AppendAction::__call__ | ( | self, | |
parser, | |||
namespace, | |||
values, | |||
option_string = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 925 of file argparse.py.
def argparse::_AppendAction::__call__ | ( | self, | |
parser, | |||
namespace, | |||
values, | |||
option_string = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 937 of file argparse.py.
00937 : 00938 items = _copy.copy(_ensure_value(namespace, self.dest, [])) 00939 items.append(values) 00940 setattr(namespace, self.dest, items) 00941 00942