4 local curcontext="$curcontext" fileopts diropts cur prev
6 fileopts="{{fileopts}}"
11 _arguments '*: :(::ytfavorites ::ytrecommended ::ytsubscriptions ::ytwatchlater ::ythistory)'
14 prev=$words[CURRENT-1]
15 if [[ ${prev} =~ ${fileopts} ]]; then
17 elif [[ ${prev} =~ ${diropts} ]]; then
19 elif [[ ${prev} == "--recode-video" ]]; then
20 _arguments '*: :(mp4 flv ogg webm mkv)'
22 _arguments '*: :({{flags}})'