summaryrefslogtreecommitdiffhomepage
path: root/youtube-dl.bash-completion
diff options
context:
space:
mode:
authorFilippo Valsorda <[email protected]>2012-08-01 17:26:50 +0200
committerFilippo Valsorda <[email protected]>2012-08-01 17:26:50 +0200
commitce7b2a40d04de1eadd5b81910ad374fee8db268d (patch)
tree5519fa77dd78331eaa49d33a1c53f16a6109a277 /youtube-dl.bash-completion
parentcfcec693315c7f463c9364fd8b9d96f6e090f439 (diff)
downloadyoutube-dl-ce7b2a40d04de1eadd5b81910ad374fee8db268d.tar.gz
youtube-dl-ce7b2a40d04de1eadd5b81910ad374fee8db268d.zip
added automatically generated bash-completion; closes #191
Diffstat (limited to 'youtube-dl.bash-completion')
-rw-r--r--youtube-dl.bash-completion14
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube-dl.bash-completion b/youtube-dl.bash-completion
new file mode 100644
index 000000000..8704d0fd3
--- /dev/null
+++ b/youtube-dl.bash-completion
@@ -0,0 +1,14 @@
+__youtube-dl()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ 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 --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 --retries --simulate --skip-download --srt-lang --title --update --username --verbose --version --write-description --write-info-json --write-srt"
+
+ if [[ ${cur} == * ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+}
+
+complete -F __youtube-dl youtube-dl