diff --git a/bpm-graph b/bpm-graph index e9b3647..3ab26be 100755 --- a/bpm-graph +++ b/bpm-graph @@ -23,8 +23,20 @@ set -e -if [ -z "$1" ]; then - echo "Usage: $0 " >&2 +usage() +{ + cat < + +Usage: bpm-graph +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 diff --git a/bpm-tag b/bpm-tag index 431f2c1..ff52561 100755 --- a/bpm-tag +++ b/bpm-tag @@ -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 }