{"record":{"id":"d5e1a12baaf152c0","repo":"sqlmapproject/sqlmap","slug":"detected-usage-of-long-option-without-a-starti","errorCode":null,"errorMessage":"[!] detected usage of long-option without a starting hyphen ('%s')","messagePattern":"\\[!\\] detected usage of long-option without a starting hyphen \\('(.+?)'\\)","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"error","filePath":"lib/parse/cmdline.py","lineNumber":1184,"sourceCode":"                argv[i] = argv[i][:-1]\n                conf.skipThreadCheck = True\n            elif argv[i] == \"--version\":\n                print(VERSION_STRING.split('/')[-1])\n                raise SystemExit\n            elif argv[i] in (\"-h\", \"--help\"):\n                advancedHelp = False\n                for group in get_groups(parser)[:]:\n                    found = False\n                    for option in get_actions(group):\n                        if option.dest not in BASIC_HELP_ITEMS:\n                            option.help = SUPPRESS\n                        else:\n                            found = True\n                    if not found:\n                        get_groups(parser).remove(group)\n            elif '=' in argv[i] and not argv[i].startswith('-') and argv[i].split('=')[0] in longOptions and re.search(r\"\\A-{1,2}\\w\", argv[i - 1]) is None:\n                dataToStdout(\"[!] detected usage of long-option without a starting hyphen ('%s')\\n\" % argv[i])\n                raise SystemExit\n\n        for verbosity in [_ for _ in argv if re.search(r\"\\A\\-v+\\Z\", _)]:  # Note: list (not a generator) - the loop mutates argv (del), which would desync a live generator and leave a stray '-v' for argparse to choke on\n            try:\n                if argv.index(verbosity) == len(argv) - 1 or not argv[argv.index(verbosity) + 1].isdigit():\n                    conf.verbose = verbosity.count('v')\n                    del argv[argv.index(verbosity)]\n            except (IndexError, ValueError):\n                pass\n\n        try:\n            (args, _) = parser.parse_known_args(argv) if hasattr(parser, \"parse_known_args\") else parser.parse_args(argv)\n        except UnicodeEncodeError as ex:\n            dataToStdout(\"\\n[!] %s\\n\" % getUnicode(ex.object.encode(\"unicode-escape\")))\n            raise SystemExit\n        except SystemExit:\n            if \"-h\" in argv and not advancedHelp:\n                dataToStdout(\"\\n[!] to see full list of options run with '-hh'\\n\")\n            raise","sourceCodeStart":1166,"sourceCodeEnd":1202,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/parse/cmdline.py#L1166-L1202","documentation":"Error \"[!] detected usage of long-option without a starting hyphen ('%s')\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/parse/cmdline.py:1184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}