From f501ccd9460208fa5c03654ff008527fa714b7b9 Mon Sep 17 00:00:00 2001 From: eehouse Date: Tue, 20 Apr 2010 02:39:06 +0000 Subject: [PATCH] add better missing-param messages --- xwords4/linux/scripts/playme.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xwords4/linux/scripts/playme.sh b/xwords4/linux/scripts/playme.sh index 960a8f211..520bdb466 100755 --- a/xwords4/linux/scripts/playme.sh +++ b/xwords4/linux/scripts/playme.sh @@ -68,32 +68,32 @@ do_one() { while [ -n "$1" ]; do case $1 in --delay) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" HOW_LONG=$2 shift ;; --relay) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" HOSTNAME=$2 shift ;; --port) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" PORT=$2 shift ;; --room) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" ROOM_ADD=$2 shift ;; --dict) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" DICT=$2 shift ;; --games) - [ -n "$2" ] || usage + [ -n "$2" ] || usage "$1 requires a parameter" NGAMES=$2 shift ;; @@ -101,7 +101,7 @@ while [ -n "$1" ]; do DBUG=1 ;; *) - usage + usage "unknown option $1" ;; esac shift