CmdLine: Exit with an error on a bad option value

An invalid value (e.g. --debugger-run swallowing the next flag) printed an
error but returned Exit, so the process exited 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-09-23 19:25:24 -06:00
1 parent a293221fe2
commit 24e44cb5dd
1 file changed
+1 -1
+1 -1
View File
@@ -414,7 +414,7 @@ CommandLineParseResult CommandLineOptions::Parse(int argc, const char *argv[], C
parsedAutoParam = true;
break;
} else if (result == ParseParamResult::BadValue) {
return CommandLineParseResult::Exit;
return CommandLineParseResult::Error;
} // else nomatch
}