MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/argparse.py:1217–1240  ·  view source on GitHub ↗
(self,
                 option_strings,
                 prog,
                 parser_class,
                 dest=SUPPRESS,
                 required=False,
                 help=None,
                 metavar=None)

Source from the content-addressed store, hash-verified

1215 metavar=metavar)
1216
1217 def __init__(self,
1218 option_strings,
1219 prog,
1220 parser_class,
1221 dest=SUPPRESS,
1222 required=False,
1223 help=None,
1224 metavar=None):
1225
1226 self._prog_prefix = prog
1227 self._parser_class = parser_class
1228 self._name_parser_map = {}
1229 self._choices_actions = []
1230 self._deprecated = set()
1231 self._color = True
1232
1233 super(_SubParsersAction, self).__init__(
1234 option_strings=option_strings,
1235 dest=dest,
1236 nargs=PARSER,
1237 choices=self._name_parser_map,
1238 required=required,
1239 help=help,
1240 metavar=metavar)
1241
1242 def add_parser(self, name, *, deprecated=False, **kwargs):
1243 # set prog from the existing prefix

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected