From 7f739d0f1bd97ce51d7d4295983792c2ff7c70b8 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sat, 6 Apr 2013 23:02:35 +0200 Subject: [PATCH] _id3v2: complete at least one option before filenames --- src/_id3v2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_id3v2 b/src/_id3v2 index 160c757..edae6e7 100644 --- a/src/_id3v2 +++ b/src/_id3v2 @@ -80,6 +80,9 @@ _id3v2 () { _describe -t frames 'id3v2 frames' _id3v2_frames && ret=0 fi + local showfiles='' + (( CURRENT <= 2 )) && showfiles='!' + # regular arguments either way _arguments \ - tagging \ @@ -99,7 +102,7 @@ _id3v2 () { '(-R --list-rfc822)'{-R,--list-rfc822}'[lists using an rfc822-style format for output]' \ '(-)'{-D,--delete-all}'[deletes both id3v1 and id3v2 tags]' \ '(-)'{-l,--list}'[lists the tag(s) on the file(s)]' \ - '*:mp3 file:_files -g "*.mp3"' \ + $showfiles'*:mp3 file:_files -g "*.mp3"' \ - meta \ '(- *)'{-f,--list-frames}'[display all possible frames for id3v2]' \ '(- *)'{-L,--list-genres}'[lists all id3v1 genres]' \