summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-04 18:05:07 +0200
committerDanilo M. <danix@danix.xyz>2026-07-04 18:05:07 +0200
commitd8adfca97dadff4d59c3dfb26f0b0c95542d9a69 (patch)
tree33fe24f71cc57c01f7e72a089e6f0d5ef712826b
parent19f1b819c522bb4fa358a55c01bf55d00bb507c3 (diff)
downloadmkhintfile-d8adfca97dadff4d59c3dfb26f0b0c95542d9a69.tar.gz
mkhintfile-d8adfca97dadff4d59c3dfb26f0b0c95542d9a69.zip
feat: completion knows -V/--set-version, -v/--version terminal
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
-rw-r--r--mkhint.bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkhint.bash-completion b/mkhint.bash-completion
index 1a72da2..4b9b147 100644
--- a/mkhint.bash-completion
+++ b/mkhint.bash-completion
@@ -8,7 +8,7 @@ _mkhintfile_completions() {
repo_dir="/var/lib/sbopkg/SBo-danix"
hint_dir="/etc/slackrepo/SBo-danix/hintfiles"
- local all_flags="--version -v --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --help -h"
+ local all_flags="--version -v --set-version -V --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --help -h"
# -R/--review and -l/--list take any number of hint names; complete them repeatedly.
local w in_review=""
@@ -39,7 +39,7 @@ _mkhintfile_completions() {
done
COMPREPLY=($(compgen -W "${words[*]}" -- "$cur"))
;;
- --version|-v)
+ --set-version|-V)
local pkg="" i
for (( i=1; i<${#COMP_WORDS[@]}-1; i++ )); do
if [[ "${COMP_WORDS[i]}" == "--hintfile" || "${COMP_WORDS[i]}" == "-f" ]]; then