]> git.bitcoin.ninja Git - youtube-dl/blob - devscripts/bash-completion.in
YoutubeIE: new algo for length 87 (fixes #1105)
[youtube-dl] / devscripts / bash-completion.in
1 __youtube-dl()
2 {
3     local cur prev opts
4     COMPREPLY=()
5     cur="${COMP_WORDS[COMP_CWORD]}"
6     opts="{{flags}}"
7
8     if [[ ${cur} == * ]] ; then
9         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
10         return 0
11     fi
12 }
13
14 complete -F __youtube-dl youtube-dl