mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
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:
1 parent
a293221fe2
commit
24e44cb5dd
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user