Definition at line 906 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 |
|
) |
| |
Definition at line 918 of file argparse.py.
921 raise ValueError(
'nargs for append actions must be > 0; if arg '
922 'strings are not supplying the value to append, '
923 'the append const action may be more appropriate')
924 if const
is not None and nargs != OPTIONAL:
925 raise ValueError(
'nargs must be %r to supply const' % OPTIONAL)
926 super(_AppendAction, self).
__init__(
927 option_strings=option_strings,