From 0c7be696371069e0baa2515ed7aa08d5a5473aa6 Mon Sep 17 00:00:00 2001 From: baiqieji123 <3022500688@qq.com> Date: Mon, 12 Oct 2026 13:01:56 +0800 Subject: [PATCH] examples : change exit code for requires_value_error function (#4105) --- examples/cli/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cli/cli.cpp b/examples/cli/cli.cpp index b015319d7..3652c76c1 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) {