summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_metaflac
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_metaflac')
-rw-r--r--Completion/Unix/Command/_metaflac25
1 files changed, 10 insertions, 15 deletions
diff --git a/Completion/Unix/Command/_metaflac b/Completion/Unix/Command/_metaflac
index 14095e9f9..65b9eb292 100644
--- a/Completion/Unix/Command/_metaflac
+++ b/Completion/Unix/Command/_metaflac
@@ -1,16 +1,13 @@
#compdef metaflac
local _metaflac_opts _metaflac_shorts _metaflac_opers
-typeset -A opt_args
-function _metaflac_tags () {
- echo "\n\nBEEP - $line - BEEP\n\n"
-}
-_metaflac_opts=(
- '--preserve-modtime'
- '--with-filename[prefix output with filename]'
- '--no-filename'
+
+_metaflac_opts=(
+ '--preserve-modtime'
+ '--with-filename[prefix output with filename]'
+ '--no-filename'
'--no-utf8-convert'
- '--dont-use-padding[always rewrite the file]'
+ '--dont-use-padding[always rewrite the file]'
)
_metaflac_shorts=(
'--show-md5sum'
@@ -23,7 +20,7 @@ _metaflac_shorts=(
'--show-bps'
'--show-total-samples'
'--show-vendor-tag'
- '--show-tag=:FLAC tags:_metaflac_tags'
+ '--show-tag=:FLAC tags'
'--remove-tag=:FLAC tags: '
'--remove-first-tag=:FLAC tags: '
'--remove-all-tags'
@@ -51,9 +48,7 @@ _metaflac_opers=(
_arguments "$_metaflac_opts[@]" \
"*:FLAC file:_files -g \*.flac\(-.\)" \
- - "shortcuts" \
+ - "shortcuts" \
"$_metaflac_shorts[@]" \
- - "(operations)" \
- "$_metaflac_opers[@]" \
- && return 0
-
+ - "(operations)" \
+ "$_metaflac_opers[@]"