From 24e44cb5dd0a4652557ab47ae65ddaa58aad3847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 22 Sep 2026 15:56:52 -0600 Subject: [PATCH] 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) --- Core/CmdLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/CmdLine.cpp b/Core/CmdLine.cpp index e2e896bd95..8e2baab246 100644 --- a/Core/CmdLine.cpp +++ b/Core/CmdLine.cpp @@ -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 }