shared_testnet/entry_point.sh: "--network" option
This commit is contained in:
parent
510e8110ff
commit
6c31b3f01c
|
@ -14,9 +14,10 @@ if [ ${PIPESTATUS[0]} != 4 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPTS="h"
|
OPTS="h"
|
||||||
LONGOPTS="help,build,run"
|
LONGOPTS="help,network:,build,run"
|
||||||
|
|
||||||
# default values
|
# default values
|
||||||
|
NETWORK="altona"
|
||||||
BUILD=0
|
BUILD=0
|
||||||
RUN=0
|
RUN=0
|
||||||
|
|
||||||
|
@ -25,6 +26,7 @@ print_help() {
|
||||||
Usage: $(basename $0) <options> -- <beacon_node options>
|
Usage: $(basename $0) <options> -- <beacon_node options>
|
||||||
|
|
||||||
-h, --help this help message
|
-h, --help this help message
|
||||||
|
--network default: ${NETWORK}
|
||||||
--build build the beacon_node
|
--build build the beacon_node
|
||||||
--run run the beacon_node
|
--run run the beacon_node
|
||||||
EOF
|
EOF
|
||||||
|
@ -44,6 +46,10 @@ while true; do
|
||||||
print_help
|
print_help
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
--network)
|
||||||
|
NETWORK="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--build)
|
--build)
|
||||||
BUILD=1
|
BUILD=1
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in New Issue