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

Method add_argument

common.py:684–696  ·  view source on GitHub ↗

Also handle: - modified defaults from child classes. - common arguments to forward on Python calls

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

682 env['disk_image'] = env['qcow2_file']
683
684 def add_argument(self, *args, **kwargs):
685 '''
686 Also handle:
687
688 - modified defaults from child classes.
689 - common arguments to forward on Python calls
690 '''
691 shortname, longname, key, is_option = self.get_key(*args, **kwargs)
692 if key in self._defaults:
693 kwargs['default'] = self._defaults[key]
694 if self._is_common:
695 self._common_args.add(key)
696 super().add_argument(*args, **kwargs)
697
698 @staticmethod
699 def base64_encode(string):

Callers 2

__init__Method · 0.95
__init__Method · 0.45

Calls 1

get_keyMethod · 0.45

Tested by

no test coverage detected