From: Ian Jackson Date: Fri, 11 Apr 2014 16:35:15 +0000 (+0100) Subject: better usage message X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=df56eddadb41da398ab0c094a38f5068eda35ba8;p=post-pizza-notify.git better usage message --- diff --git a/notify b/notify index 83bf608..f47a19d 100755 --- a/notify +++ b/notify @@ -1,10 +1,21 @@ #!/bin/bash set -e +usage () { cat <&2 "usage: ./notify senderfile recipientsfile 'message'" - exit 1 ;; +*) usage >&2; exit 1 ;; esac senderinfo="$1"