Commit 0c7be696 for whisper.cpp
commit 0c7be696371069e0baa2515ed7aa08d5a5473aa6
Author: baiqieji123 <3022500688@qq.com>
Date: Mon Oct 12 13:01:56 2026 +0800
examples : change exit code for requires_value_error function (#4105)
diff --git a/examples/cli/cli.cpp b/examples/cli/cli.cpp
index b015319d..3652c76c 100644
--- a/examples/cli/cli.cpp
+++ b/examples/cli/cli.cpp
@@ -126,7 +126,7 @@ static char * whisper_param_turn_lowercase(char * in){
static char * requires_value_error(const std::string & arg) {
fprintf(stderr, "error: argument %s requires value\n", arg.c_str());
- exit(0);
+ exit(1);
}
static bool whisper_params_parse(int argc, char ** argv, whisper_params & params) {