{"record":{"id":"61ab3f28883f0622","repo":"shadow1ng/fscan","slug":"param-exclusive","errorCode":"param_exclusive","errorMessage":"%s","messagePattern":"%s","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/initialize.go","lineNumber":85,"sourceCode":"\tif fv.TargetURL != \"\" {\n\t\tparamCount++\n\t\tif activeParam != \"\" {\n\t\t\tactiveParam = i18n.Tr(\"param_join_and\", activeParam, \"-u\")\n\t\t} else {\n\t\t\tactiveParam = \"-u\"\n\t\t}\n\t}\n\tif fv.LocalPlugin != \"\" {\n\t\tparamCount++\n\t\tif activeParam != \"\" {\n\t\t\tactiveParam = i18n.Tr(\"param_join_and\", activeParam, \"-local\")\n\t\t} else {\n\t\t\tactiveParam = \"-local\"\n\t\t}\n\t}\n\n\tif paramCount > 1 {\n\t\treturn fmt.Errorf(\"%s\", i18n.Tr(\"param_exclusive\", activeParam))\n\t}\n\n\treturn nil\n}\n\n// Cleanup 清理资源\nfunc Cleanup() error {\n\treturn CloseOutput()\n}\n","sourceCodeStart":67,"sourceCodeEnd":95,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/common/initialize.go#L67-L95","documentation":"Mutual-exclusion guard in ValidateExclusiveParams: more than one mutually exclusive flag was set on the command line (e.g. -u together with -local). activeParam accumulates the names of the conflicting flags (joined with the param_join_and message) and param_exclusive reports that they cannot be combined; only a single target-source flag is allowed.","triggerScenarios":"Thrown at common/initialize.go:85 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Keep only one target source: -h/-hf, -u/-uf, or -local","Remove the redundant flag reported in the error text","Check the printed usage help for valid flag combinations"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95cc12e753bf43de7004e5aef42a9ffba3934303","analyzedAt":"2026-09-06T17:07:30.094Z","contentChangedAt":"2026-09-06T17:07:30.094Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}