Implement help message for the run-*-beacon-node scripts

This commit is contained in:
Zahary Karadjov 2020-11-09 17:04:20 +02:00 committed by zah
parent bd1047b715
commit 1774da15f1
1 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,20 @@ shift
NETWORK=$1
shift
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
cat <<HELP
All supplied options will be forwarded to the beacon node executable.
Please execute build/$NBC_BINARY --help to get more information.
To suppress the interactive input required by this script, you can
specify WEB3_URL as an environment variable.
HELP
exit 0
fi
# Windows detection
if uname | grep -qiE "mingw|msys"; then
MAKE="mingw32-make"