mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 10:54:36 +00:00
common : print usage on '-h' and '--help' (#6145)
This commit is contained in:
parent
2d15886bb0
commit
4c28b82529
@ -1056,7 +1056,8 @@ static bool gpt_params_find_arg(int argc, char ** argv, gpt_params & params, int
|
||||
return true;
|
||||
}
|
||||
if (arg == "-h" || arg == "--help") {
|
||||
return false;
|
||||
gpt_print_usage(argc, argv, gpt_params());
|
||||
exit(0);
|
||||
}
|
||||
if (arg == "--version") {
|
||||
fprintf(stderr, "version: %d (%s)\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT);
|
||||
|
Loading…
Reference in New Issue
Block a user