Method
__init__
(self,
option_strings,
dest,
const,
default=None,
required=False,
help=None,
metavar=None)
Source from the content-addressed store, hash-verified
| 860 | class _StoreConstAction(Action): |
| 861 | |
| 862 | def __init__(self, |
| 863 | option_strings, |
| 864 | dest, |
| 865 | const, |
| 866 | default=None, |
| 867 | required=False, |
| 868 | help=None, |
| 869 | metavar=None): |
| 870 | super(_StoreConstAction, self).__init__( |
| 871 | option_strings=option_strings, |
| 872 | dest=dest, |
| 873 | nargs=0, |
| 874 | const=const, |
| 875 | default=default, |
| 876 | required=required, |
| 877 | help=help) |
| 878 | |
| 879 | def __call__(self, parser, namespace, values, option_string=None): |
| 880 | setattr(namespace, self.dest, self.const) |
Callers
nothing calls this directly
Tested by
no test coverage detected