From 53e16f68d955cf769b5e8c67f9fda690f1a7e7a6 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 6 Sep 2018 20:57:05 -0700 Subject: [PATCH] Improve error handling --- net/gce.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/gce.sh b/net/gce.sh index 7cbe3f7417..3863b47d93 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -107,7 +107,9 @@ while getopts "h?p:Pi:n:c:z:ga:y" opt; do ;; esac done +shift $((OPTIND - 1)) +[[ -z $1 ]] || usage "Unexpected argument: $1" prepareInstancesAndWriteConfigFile() { $metricsWriteDatapoint "testnet-deploy net-config-begin=1"