Skip to content

Commit 85d6b75

Browse files
committed
scripts/update_release_tag.sh: add -h|--help section
1 parent 33132c6 commit 85d6b75

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/update_release_tag.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
44

55
cd $SCRIPT_DIR/..
66

7-
if [ $# -ne 2 ]; then
8-
echo "Usage: $0 <new_mainnet_tag> <new_devnet_tag>"
9-
exit 1
7+
if [[ "$1" == "-h" || "$1" == "--help" || $# -ne 2 ]]; then
8+
cat << EOF
9+
Usage: ${0##*/} [-h|--help] <new_mainnet_tag> <new_devnet_tag>
10+
11+
This script take new_mainnet_tag and new_devnet_tag, scan through the whole repo
12+
and replace old tags them with provided new tags.
13+
14+
-h|--help display this help and exit
15+
EOF
16+
exit 0
1017
fi
1118

1219
NEW_MAINNET_TAG="$1"

0 commit comments

Comments
 (0)