]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : add -m to bash completion for --model [no ci] (#15591)
authorDaniel Bevenius <redacted>
Wed, 27 Aug 2025 08:28:53 +0000 (10:28 +0200)
committerGitHub <redacted>
Wed, 27 Aug 2025 08:28:53 +0000 (10:28 +0200)
This commit updates the bash completion script to include the -m
short option for the --model argument.

The motivation for this is that currently tab completion only works the
full --model option, and it is nice to have it work for the short option
as well.

common/arg.cpp

index 81c4005c5e7fc0a8adce4f8caaade19c73cc8ac5..1ae3fdbf4a80250375311956a233a180d80654cf 100644 (file)
@@ -1106,7 +1106,7 @@ static void common_params_print_completion(common_params_context & ctx_arg) {
     printf("\"\n\n");
 
     printf("    case \"$prev\" in\n");
-    printf("        --model)\n");
+    printf("        --model|-m)\n");
     printf("            COMPREPLY=( $(compgen -f -X '!*.gguf' -- \"$cur\") $(compgen -d -- \"$cur\") )\n");
     printf("            return 0\n");
     printf("            ;;\n");