]> jfr.im git - yt-dlp.git/blame - devscripts/bash-completion.in
add '--write-srt' and '--srt-lang' aliases for backwards compatibility
[yt-dlp.git] / devscripts / bash-completion.in
CommitLineData
cc51a7d4
FV
1__youtube-dl()
2{
3 local cur prev opts
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
bdff3455 6 opts="{{flags}}"
cc51a7d4
FV
7
8 if [[ ${cur} == * ]] ; then
9 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
10 return 0
11 fi
12}
13
14complete -F __youtube-dl youtube-dl