MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / get_all_options

Function get_all_options

sqlmapapi.py:44–62  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

42 return getattr(parser, "option_groups", None) or getattr(parser, "_action_groups")
43
44 def get_all_options(parser):
45 retVal = set()
46
47 for option in get_actions(parser):
48 if hasattr(option, "option_strings"):
49 retVal.update(option.option_strings)
50 else:
51 retVal.update(option._long_opts)
52 retVal.update(option._short_opts)
53
54 for group in get_groups(parser):
55 for option in get_actions(group):
56 if hasattr(option, "option_strings"):
57 retVal.update(option.option_strings)
58 else:
59 retVal.update(option._long_opts)
60 retVal.update(option._short_opts)
61
62 return retVal
63
64from lib.core.common import getUnicode
65from lib.core.common import setPaths

Callers

nothing calls this directly

Calls 3

get_actionsFunction · 0.70
get_groupsFunction · 0.70
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…