zsh-completion: complete options after --help

This commit is contained in:
Guido Cella authored and Dudemanguy committed 2023-11-15 15:08:30 +00:00
1 parent cb89c7ef89
commit 5362ec9ec0
1 file changed
+8
+8
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