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"