aboutsummaryrefslogtreecommitdiff
path: root/transcode.sh.bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.sh.bash-completion')
-rw-r--r--transcode.sh.bash-completion28
1 files changed, 21 insertions, 7 deletions
diff --git a/transcode.sh.bash-completion b/transcode.sh.bash-completion
index ce153dd..59a9c8d 100644
--- a/transcode.sh.bash-completion
+++ b/transcode.sh.bash-completion
@@ -6,8 +6,8 @@
#
# Each option that takes an argument is supported in all three forms:
# short -f list.txt
-# long space --encodefile list.txt
-# long equals --encodefile=list.txt
+# long space --encode-file list.txt
+# long equals --encode-file=list.txt
_transcode_sh() {
local cur prev words cword
@@ -40,7 +40,12 @@ _transcode_sh() {
# This must be checked before the $prev dispatch below.
# ---------------------------------------------------------------------------
case "$cur" in
- --encodefile=*)
+ --config-file=*)
+ cur="${cur#*=}"
+ _filedir
+ return
+ ;;
+ --encode-file=*)
cur="${cur#*=}"
_filedir
return
@@ -69,11 +74,15 @@ _transcode_sh() {
# ---------------------------------------------------------------------------
# Handle VALUE after short form (-f, -N, -S, -p) and
- # long space form (--encodefile, --nice, --saving-file, --skip-codec, --preset).
+ # long space form (--encode-file, --nice, --saving-file, --skip-codec, --preset).
# $prev is the option word, $cur is the value being typed.
# ---------------------------------------------------------------------------
case "$prev" in
- -f|--encodefile)
+ --config-file)
+ _filedir
+ return
+ ;;
+ -f|--encode-file)
_filedir
return
;;
@@ -106,17 +115,22 @@ _transcode_sh() {
--*)
local longopts='
--continue
- --encodefile
- --encodefile=
+ --no-continue
+ --config-file
+ --config-file=
+ --encode-file
+ --encode-file=
--dry-run
--nice
--nice=
--saving
+ --no-saving
--saving-file
--saving-file=
--skip-codec
--skip-codec=
--only-if-smaller
+ --no-only-if-smaller
--preset
--preset=
--help