Skip to content

Commit e0abaa0

Browse files
committed
make sure params --split and --merge are not specified at same time
1 parent 37f8c7b commit e0abaa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/gguf-split/gguf-split.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ static void split_params_parse_ex(int argc, const char ** argv, split_params & p
8080
bool invalid_param = false;
8181

8282
int arg_idx = 1;
83+
bool is_op_set = false;
84+
bool is_mode_set = false;
8385
for (; arg_idx < argc && strncmp(argv[arg_idx], "--", 2) == 0; arg_idx++) {
8486
arg = argv[arg_idx];
8587
if (arg.compare(0, arg_prefix.size(), arg_prefix) == 0) {
8688
std::replace(arg.begin(), arg.end(), '_', '-');
8789
}
8890

8991
bool arg_found = false;
90-
bool is_op_set = false;
91-
bool is_mode_set = false;
9292
if (arg == "-h" || arg == "--help") {
9393
split_print_usage(argv[0]);
9494
exit(0);

0 commit comments

Comments
 (0)