MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / __init__

Method __init__

cli_function.py:142–152  ·  view source on GitHub ↗
(self, config_file=None, description=None, extra_config_params=None)

Source from the content-addressed store, hash-verified

140 return self.main(**self._get_args(kwargs))
141
142 def __init__(self, config_file=None, description=None, extra_config_params=None):
143 self._arguments = collections.OrderedDict()
144 self._config_file = config_file
145 self._description = description
146 self.extra_config_params = extra_config_params
147 if self._config_file is not None:
148 self.add_argument(
149 '--config-file',
150 default=self._config_file,
151 help='Path to the configuration file to use'
152 )
153
154 def __str__(self):
155 return '\n'.join(str(arg[key]) for key in self._arguments)

Callers

nothing calls this directly

Calls 1

add_argumentMethod · 0.95

Tested by

no test coverage detected