Public Member Functions | |
def | __call__ |
def | __call__ |
def | __init__ |
def | __init__ |
Definition at line 895 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 897 of file argparse.py.
00908 : 00909 if nargs == 0: 00910 raise ValueError('nargs for append actions must be > 0; if arg ' 00911 'strings are not supplying the value to append, ' 00912 'the append const action may be more appropriate') 00913 if const is not None and nargs != OPTIONAL: 00914 raise ValueError('nargs must be %r to supply const' % OPTIONAL) 00915 super(_AppendAction, self).__init__( 00916 option_strings=option_strings, 00917 dest=dest, 00918 nargs=nargs, 00919 const=const, 00920 default=default, 00921 type=type, 00922 choices=choices, 00923 required=required, 00924 help=help, 00925 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 926 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