File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
439
439
}
440
440
types.push_back (gt);
441
441
}
442
+ if (invalid_param) {
443
+ break ;
444
+ }
442
445
params.type_k .insert (params.type_k .end (), types.begin (), types.end ());
443
446
} else if (arg == " -ctv" || arg == " --cache-type-v" ) {
444
447
if (++i >= argc) {
@@ -455,6 +458,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
455
458
}
456
459
types.push_back (gt);
457
460
}
461
+ if (invalid_param) {
462
+ break ;
463
+ }
458
464
params.type_v .insert (params.type_v .end (), types.begin (), types.end ());
459
465
} else if (arg == " -t" || arg == " --threads" ) {
460
466
if (++i >= argc) {
@@ -520,6 +526,9 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
520
526
}
521
527
modes.push_back (mode);
522
528
}
529
+ if (invalid_param) {
530
+ break ;
531
+ }
523
532
params.split_mode .insert (params.split_mode .end (), modes.begin (), modes.end ());
524
533
} else if (arg == " -mg" || arg == " --main-gpu" ) {
525
534
if (++i >= argc) {
You can’t perform that action at this time.
0 commit comments