mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 06:39:25 +01:00
export-lora : handle help argument (#8497)
The --help option on export-lora isn't accepted as valid. The help still gets displayed by default, but the script exits with an error message and nonzero status.
This commit is contained in:
parent
0efec57787
commit
37b12f92ab
@ -190,6 +190,9 @@ static bool export_lora_params_parse(int argc, char ** argv, struct export_lora_
|
|||||||
if (params->n_threads <= 0) {
|
if (params->n_threads <= 0) {
|
||||||
params->n_threads = std::thread::hardware_concurrency();
|
params->n_threads = std::thread::hardware_concurrency();
|
||||||
}
|
}
|
||||||
|
} else if (arg == "-h" || arg == "--help") {
|
||||||
|
export_lora_print_usage(argc, argv, &default_params);
|
||||||
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "error: unknown argument: '%s'\n", arg.c_str());
|
fprintf(stderr, "error: unknown argument: '%s'\n", arg.c_str());
|
||||||
export_lora_print_usage(argc, argv, &default_params);
|
export_lora_print_usage(argc, argv, &default_params);
|
||||||
|
Loading…
Reference in New Issue
Block a user