From e3b6feea5cbf47c6a7df08208b0d6588015bce90 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Tue, 14 Sep 2004 05:35:34 +0000 Subject: [PATCH] Add usage information to cuetag.sh. --- tools/cuetag.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/cuetag.sh b/tools/cuetag.sh index bee4e3e..8657c43 100755 --- a/tools/cuetag.sh +++ b/tools/cuetag.sh @@ -1,11 +1,17 @@ #! /bin/sh -# cuetag - tag files based on cue/toc file information +# cuetag.sh - tag files based on cue/toc file information # uses cueprint output +# usage: cuetag.sh [file]... CUEPRINT=cueprint cue_file="" +usage() +{ + echo "usage: cuetag.sh [file]..." +} + # Vorbis Comments vorbis() { @@ -113,6 +119,11 @@ id3() main() { + if [ $# -lt 1 ]; then + usage + exit + fi + cue_file=$1 shift @@ -120,7 +131,7 @@ main() trackno=1 if [ $# -ne $ntrack ]; then - echo "Number of files does not match number of tracks." + echo "warning: number of files does not match number of tracks" fi for file in $@; do