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

Function checkOldOptions

lib/core/common.py:4836–4852  ·  view source on GitHub ↗

Checks for obsolete/deprecated options

(args)

Source from the content-addressed store, hash-verified

4834 return retVal
4835
4836def checkOldOptions(args):
4837 """
4838 Checks for obsolete/deprecated options
4839 """
4840
4841 for _ in args:
4842 _ = _.split('=')[0].strip()
4843 if _ in OBSOLETE_OPTIONS:
4844 errMsg = "switch/option '%s' is obsolete" % _
4845 if OBSOLETE_OPTIONS[_]:
4846 errMsg += " (hint: %s)" % OBSOLETE_OPTIONS[_]
4847 raise SqlmapSyntaxException(errMsg)
4848 elif _ in DEPRECATED_OPTIONS:
4849 warnMsg = "switch/option '%s' is deprecated" % _
4850 if DEPRECATED_OPTIONS[_]:
4851 warnMsg += " (hint: %s)" % DEPRECATED_OPTIONS[_]
4852 logger.warning(warnMsg)
4853
4854def checkSystemEncoding():
4855 """

Callers 1

cmdLineParserFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…