From: Daniel Bevenius Date: Wed, 27 Aug 2025 08:28:53 +0000 (+0200) Subject: common : add -m to bash completion for --model [no ci] (#15591) X-Git-Tag: upstream/0.0.6527~231 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fcca2182a18c786c57d02d1d1927204b133f1fdc;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : add -m to bash completion for --model [no ci] (#15591) 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. --- diff --git a/common/arg.cpp b/common/arg.cpp index 81c4005c..1ae3fdbf 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -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");