bash completion: complete ao/af/vo/vf options

I didn't handle these originally, but it turns out that they can be
handled with the samel logic as Choice options.
This commit is contained in:
Philip Langdale
2020-02-08 09:31:47 -08:00
parent 8676f4616c
commit 6799f8e0e9

View File

@@ -50,7 +50,7 @@ _mpv_get_args()
Flag)
candidates=("yes" "no" "help")
;;
Choices:)
Choices:|Object)
candidates=($(mpv $1=help | grep -v ':' | awk '{print $1;}'))
candidates+=("help")
;;