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

Method get_option

autorecon/plugins.py:52–67  ·  view source on GitHub ↗
(self, name, default=None)

Source from the content-addressed store, hash-verified

50
51 @final
52 def get_option(self, name, default=None):
53 # TODO: make sure name is simple.
54 name = self.slug.replace('-', '_') + '.' + slugify(name).replace('-', '_')
55
56 if name in vars(self.autorecon.args):
57 if vars(self.autorecon.args)[name] is None:
58 if default:
59 return default
60 else:
61 return None
62 else:
63 return vars(self.autorecon.args)[name]
64 else:
65 if default:
66 return default
67 return None
68
69 @final
70 def get_global_option(self, name, default=None):

Callers 11

runMethod · 0.80
runMethod · 0.80
manualMethod · 0.80
checkMethod · 0.80
runMethod · 0.80
runMethod · 0.80
checkMethod · 0.80
runMethod · 0.80
manualMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

slugifyFunction · 0.90

Tested by

no test coverage detected