From 94d9e7ae41c82d29f35e6c642a8dd133623097c7 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 2 Feb 2005 04:29:51 +0000 Subject: [PATCH] complain if more than one argument was passed, so that people who do ./lustrecvs co -r foo get an error as soon as practical --- lustrecvs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lustrecvs b/lustrecvs index b2b21f5..8419be4 100755 --- a/lustrecvs +++ b/lustrecvs @@ -19,8 +19,8 @@ fatal () usage () { cat < + where is a tag of the lustre-core module EOF } @@ -33,6 +33,13 @@ fi buildtag="HEAD" lustretag="$1" +shift + +if [ "$*" ] ; then + usage >&2 + exit 1 +fi + case "$lustretag" in '') -- 1.8.3.1