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-28 10:01:47 (GMT)
commite3097bdcc35588f4a7dcc99e399b0b492d9e12f4 (patch)
tree466be2587f655aea12ae426fa2345f928e401464
parent6a5643eef693ee06f51304918647e1a131f6685a (diff)
downloaddefinitions-e3097bdcc35588f4a7dcc99e399b0b492d9e12f4.tar.gz
mason-generator: Display help for wrong number of args
-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 911d879..1a2ecca 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]