From: DAN™ Date: Tue, 19 Mar 2024 05:59:36 +0000 (-0400) Subject: common : print usage on '-h' and '--help' (#6145) X-Git-Tag: upstream/0.0.4488~2026 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4c28b8252907561165827125d2d1a4bad6926ac6;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : print usage on '-h' and '--help' (#6145) --- diff --git a/common/common.cpp b/common/common.cpp index 91918286..5f10718e 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -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);