_id3: small update in descriptions and logic

use present tense. also, complete at least one option before filenames,
calling id3 with just file arguments is not a valid operation.
This commit is contained in:
Vincent Breitmoser 2013-04-06 22:58:24 +02:00
parent 6c0e222b0c
commit 590ba19ead
1 changed files with 21 additions and 15 deletions

View File

@ -46,19 +46,25 @@ _id3_genre () {
} }
_arguments \ # only show files if at least one argument or something has been provided
'-t[Modifies a Title tag]:title' \ local showfiles=''
'-T[Modifies a Track tag]:track' \ (( CURRENT <= 2 )) && showfiles='!'
'-a[Modifies an Artist tag]:artist' \
'-A[Modifies an Album tag]:album' \ _arguments \
'-y[Modifies a Year tag]:year' \ - tagging \
'-c[Modifies a Comment tag]:comment' \ '-t[modify title tag]:title' \
'-g[Modifies a Genre tag]:genre:_id3_genre' \ '-T[modify track tag]:track' \
'(-)-l[Lists an ID3 tag]' \ '-a[modify artist tag]:artist' \
'-R[Uses an rfc822-style format for output]' \ '-A[modify album tag]:album' \
'(-)-d[Deletes an ID3 tag]' \ '-y[modify year tag]:year' \
'(- *)-L[Lists all genres]' \ '-c[modify comment tag]:comment' \
'(- *)-h[Displays this help info]' \ '-g[modify genre tag]:genre:_id3_genre' \
'(- *)-v[Prints version info]' \ '(-)-l[lists tags]' \
'*:mp3 file:_files -g \*.mp3' && return 0 '-R[use rfc822-style format for output]' \
'(-)-d[delete id3 tag]' \
$showfiles'*:mp3 file:_files -g \*.mp3' \
- meta \
'(- *)-L[list all genres]' \
'(- *)-h[display help info]' \
'(- *)-v[print version info]' && return 0