mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
add better missing-param messages
This commit is contained in:
parent
56270dbe7e
commit
f501ccd946
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue