Definition at line 814 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 |
|
) |
| |
Definition at line 826 of file argparse.py.
829 raise ValueError(
'nargs for store actions must be > 0; if you '
830 'have nothing to store, actions such as store '
831 'true or store const may be more appropriate')
832 if const
is not None and nargs != OPTIONAL:
833 raise ValueError(
'nargs must be %r to supply const' % OPTIONAL)
835 option_strings=option_strings,