summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-08-22 13:16:27 (GMT)
committerRichard Maw <richard.maw@codethink.co.uk>2014-08-26 16:19:43 (GMT)
commit094395a60cb760e657277870cb25b3cf6b0a5cfb (patch)
treee4aa262ee5a40a0469df1874385667cf4d375747
parent2993164889c57d21e5d9b5b41119feb2339b510f (diff)
downloaddefinitions-baserock/richardmaw/mason-loop-time.tar.gz
mason-generator: Display help for wrong number of argsbaserock/richardmaw/mason-loop-time
-rwxr-xr-xmason/mason-generator.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mason/mason-generator.sh b/mason/mason-generator.sh
index 501e595..c236c54 100755
--- a/mason/mason-generator.sh
+++ b/mason/mason-generator.sh
@@ -2,7 +2,7 @@
set -e
-if [ "$1" == "-h" -o "$1" == "--help" ]; then
+if [ "$#" -lt 5 -o "$#" -gt 6 -o "$1" == "-h" -o "$1" == "--help" ]; then
cat <<EOF
Usage:
`basename $0` HOST_PREFIX UPSTREAM_TROVE_HOSTNAME VM_USER VM_HOST VM_PATH [HOST_POSTFIX]