Headless: Reject --debugger together with --debugger-run

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-09-29 13:17:01 -06:00
1 parent b8789af997
commit bd27ceb669
1 file changed
+5
+5
View File
@@ -508,6 +508,11 @@ CommandLineParseResult CommandLineOptions::Parse(int argc, const char *argv[], C
i++;
}
if (debuggerPort.has_value() && debuggerRunPort.has_value()) {
PRINT_STDERR("Error: --debugger and --debugger-run can't be used together.\n");
return CommandLineParseResult::Error;
}
// Final adjustments to adjust for old inconsistent code
if (log.has_value()) {
enableLogging = true;