Improve error handling

This commit is contained in:
Michael Vines 2018-09-06 20:57:05 -07:00
parent ed5fbaef06
commit 53e16f68d9
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 2 additions and 0 deletions

View File

@ -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"