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

Method add_choice_option

autorecon/plugins.py:46–49  ·  view source on GitHub ↗
(self, name, choices, default=None, help=None)

Source from the content-addressed store, hash-verified

44
45 @final
46 def add_choice_option(self, name, choices, default=None, help=None):
47 if not isinstance(choices, list):
48 fail('The choices argument for ' + self.name + '\'s ' + name + ' choice option should be a list.')
49 self.autorecon.add_argument(self, name, choices=choices, default=default, help=help)
50
51 @final
52 def get_option(self, name, default=None):

Callers 2

configureMethod · 0.80
configureMethod · 0.80

Calls 2

failFunction · 0.90
add_argumentMethod · 0.80

Tested by

no test coverage detected