mirror of https://github.com/mpv-player/mpv
zsh-completion: complete options after --help
This commit is contained in:
parent
cb89c7ef89
commit
5362ec9ec0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue