MCPcopy Index your code
hub / github.com/tanelpoder/0xtools / __init__

Method __init__

lib/0xtools/argparse.py:862–877  ·  view source on GitHub ↗
(self,
                 option_strings,
                 dest,
                 const,
                 default=None,
                 required=False,
                 help=None,
                 metavar=None)

Source from the content-addressed store, hash-verified

860class _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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected