]>
Commit | Line | Data |
---|---|---|
ce7b2a40 FV |
1 | __youtube-dl() |
2 | { | |
3 | local cur prev opts | |
4 | COMPREPLY=() | |
5 | cur="${COMP_WORDS[COMP_CWORD]}" | |
1c469a94 | 6 | opts="--all-formats --audio-format --audio-quality --auto-number --batch-file --console-title --continue --cookies --dump-user-agent --extract-audio --format --get-description --get-filename --get-format --get-thumbnail --get-title --get-url --help --id --ignore-errors --keep-video --list-extractors --list-formats --literal --match-title --max-downloads --max-quality --netrc --no-continue --no-mtime --no-overwrites --no-part --no-progress --output --password --playlist-end --playlist-start --prefer-free-formats --quiet --rate-limit --reject-title --restrict-filenames --retries --simulate --skip-download --srt-lang --title --update --user-agent --username --verbose --version --write-description --write-info-json --write-srt" |
ce7b2a40 FV |
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 |