zsh-completion: complete options after --help

This commit is contained in:
Guido Cella 2023-11-13 10:48:28 +01:00 committed by Dudemanguy
parent cb89c7ef89
commit 5362ec9ec0
1 changed files with 8 additions and 0 deletions

View File

@ -109,6 +109,10 @@ function _mpv_generate_arguments {
entry+="->parse-help-profile"
elif [[ $name == h(|elp) ]]; then
entry+="->help-options"
fi
_mpv_completion_arguments+="$entry"
@ -252,6 +256,10 @@ case $state in
done
;;
help-options)
compadd ${${${_mpv_completion_arguments%%=*}:#no-*}:#*-(add|append|clr|pre|set|remove|toggle)}
;;
esac
return rc