Help message

This commit is contained in:
Mark Hills 2013-05-21 21:28:14 +01:00
parent edca668e4d
commit 57a2f9e940
2 changed files with 15 additions and 2 deletions

View File

@ -23,8 +23,20 @@
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <file>" >&2
usage()
{
cat <<END
bpm-graph (C) Copyright 2013 Mark Hills <mark@xwax.org>
Usage: bpm-graph <file>
Display tempo analysis data
See the bpm-graph(1) man page for more information.
END
}
if [ -z "$1" ] || [ "$1" = "-h" ]; then
usage >&2
exit 1
fi

View File

@ -37,6 +37,7 @@ Tag an audio file with tempo (in beats-per-minute, BPM)
-x Maximum detected BPM
-h Display this help message and exit
See the bpm-tag(1) man page for more information and examples.
END
}