Public Member Functions | |
def | __call__ |
def | __call__ |
def | __init__ |
def | __init__ |
Definition at line 802 of file argparse.py.
def argparse::_StoreAction::__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 804 of file argparse.py.
00815 : 00816 if nargs == 0: 00817 raise ValueError('nargs for store actions must be > 0; if you ' 00818 'have nothing to store, actions such as store ' 00819 'true or store const may be more appropriate') 00820 if const is not None and nargs != OPTIONAL: 00821 raise ValueError('nargs must be %r to supply const' % OPTIONAL) 00822 super(_StoreAction, self).__init__( 00823 option_strings=option_strings, 00824 dest=dest, 00825 nargs=nargs, 00826 const=const, 00827 default=default, 00828 type=type, 00829 choices=choices, 00830 required=required, 00831 help=help, 00832 metavar=metavar)
def argparse::_StoreAction::__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 816 of file argparse.py.
00826 : 00827 if nargs == 0: 00828 raise ValueError('nargs for store actions must be > 0; if you ' 00829 'have nothing to store, actions such as store ' 00830 'true or store const may be more appropriate') 00831 if const is not None and nargs != OPTIONAL: 00832 raise ValueError('nargs must be %r to supply const' % OPTIONAL) 00833 super(_StoreAction, self).__init__( 00834 option_strings=option_strings, 00835 dest=dest, 00836 nargs=nargs, 00837 const=const, 00838 default=default, 00839 type=type, 00840 choices=choices, 00841 required=required, 00842 help=help, 00843 metavar=metavar) 00844
def argparse::_StoreAction::__call__ | ( | self, | |
parser, | |||
namespace, | |||
values, | |||
option_string = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 833 of file argparse.py.
def argparse::_StoreAction::__call__ | ( | self, | |
parser, | |||
namespace, | |||
values, | |||
option_string = None |
|||
) |
Reimplemented from argparse::Action.
Definition at line 845 of file argparse.py.
00845 : 00846 setattr(namespace, self.dest, values) 00847 00848