Skip to content

Commit 4c28b82

Browse files
authored
common : print usage on '-h' and '--help' (#6145)
1 parent 2d15886 commit 4c28b82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/common.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,8 @@ static bool gpt_params_find_arg(int argc, char ** argv, gpt_params & params, int
10561056
return true;
10571057
}
10581058
if (arg == "-h" || arg == "--help") {
1059-
return false;
1059+
gpt_print_usage(argc, argv, gpt_params());
1060+
exit(0);
10601061
}
10611062
if (arg == "--version") {
10621063
fprintf(stderr, "version: %d (%s)\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT);

0 commit comments

Comments
 (0)