MCPcopy Index your code
hub / github.com/AutoRecon/AutoRecon / add_argument

Method add_argument

autorecon/plugins.py:247–253  ·  view source on GitHub ↗
(self, plugin, name, **kwargs)

Source from the content-addressed store, hash-verified

245 self.load_module = None
246
247 def add_argument(self, plugin, name, **kwargs):
248 # TODO: make sure name is simple.
249 name = '--' + plugin.slug + '.' + slugify(name)
250
251 if self.argparse_group is None:
252 self.argparse_group = self.argparse.add_argument_group('plugin arguments', description='These are optional arguments for certain plugins.')
253 self.argparse_group.add_argument(name, **kwargs)
254
255 def extract_service(self, line, regex):
256 if regex is None:

Callers 7

runFunction · 0.80
add_optionMethod · 0.80
add_constant_optionMethod · 0.80
add_true_optionMethod · 0.80
add_false_optionMethod · 0.80
add_list_optionMethod · 0.80
add_choice_optionMethod · 0.80

Calls 1

slugifyFunction · 0.90

Tested by

no test coverage detected