From: jacob Date: Wed, 2 Feb 2005 04:29:51 +0000 (+0000) Subject: complain if more than one argument was passed, so that people who do ./lustrecvs... X-Git-Tag: 1.3.4~157 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=94d9e7ae41c82d29f35e6c642a8dd133623097c7;p=fs%2Flustre-release.git complain if more than one argument was passed, so that people who do ./lustrecvs co -r foo get an error as soon as practical --- 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 '')