From 57a2f9e940dc91bf4e7837a0bff78ae2b67ef50b Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Tue, 21 May 2013 21:28:14 +0100 Subject: [PATCH] Help message --- bpm-graph | 16 ++++++++++++++-- bpm-tag | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) 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 }