Whamcloud - gitweb
b=3031
[fs/lustre-release.git] / lustrecvs
index b2b21f5..4436462 100755 (executable)
--- a/lustrecvs
+++ b/lustrecvs
@@ -19,8 +19,8 @@ fatal ()
 usage ()
 {
     cat <<EOF
-Usage: $progname lustretag
-  where lustretag is a tag of the lustre-core module
+Usage: $progname <lustretag>
+  where <lustretag> is a tag of the lustre-core module
 EOF
 }
 
@@ -31,8 +31,17 @@ if [ -z "$LUSTRECVS_UPDATED" ] ; then
     exec "$0" "$@"
 fi
 
+[ "$1" = "-r" ] && shift
+
 buildtag="HEAD"
 lustretag="$1"
+shift
+
+if [ "$*" ] ; then
+    usage >&2
+    exit 1
+fi
+
 
 case "$lustretag" in
     '')