From 78f3caa88e5c44cef73b4650a5726d184a30cfac Mon Sep 17 00:00:00 2001 From: slaren Date: Sun, 15 Sep 2024 18:27:55 +0200 Subject: [PATCH] gguf-split : error when too many arguments are passed ggml-ci --- examples/gguf-split/gguf-split.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gguf-split/gguf-split.cpp b/examples/gguf-split/gguf-split.cpp index 01057f4ce..82c239b83 100644 --- a/examples/gguf-split/gguf-split.cpp +++ b/examples/gguf-split/gguf-split.cpp @@ -152,7 +152,7 @@ static void split_params_parse_ex(int argc, const char ** argv, split_params & p throw std::invalid_argument("error: invalid parameter for argument: " + arg); } - if (argc - arg_idx < 2) { + if (argc - arg_idx != 2) { throw std::invalid_argument("error: bad arguments"); }