shared_testnet/entry_point.sh: "--network" option

This commit is contained in:
Ștefan Talpalaru 2020-06-29 15:09:54 +02:00
parent 510e8110ff
commit 6c31b3f01c
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 7 additions and 1 deletions

View File

@ -14,9 +14,10 @@ if [ ${PIPESTATUS[0]} != 4 ]; then
fi
OPTS="h"
LONGOPTS="help,build,run"
LONGOPTS="help,network:,build,run"
# default values
NETWORK="altona"
BUILD=0
RUN=0
@ -25,6 +26,7 @@ print_help() {
Usage: $(basename $0) <options> -- <beacon_node options>
-h, --help this help message
--network default: ${NETWORK}
--build build the beacon_node
--run run the beacon_node
EOF
@ -44,6 +46,10 @@ while true; do
print_help
exit
;;
--network)
NETWORK="$2"
shift 2
;;
--build)
BUILD=1
shift