We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33132c6 commit 85d6b75Copy full SHA for 85d6b75
scripts/update_release_tag.sh
@@ -4,9 +4,16 @@ SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
4
5
cd $SCRIPT_DIR/..
6
7
-if [ $# -ne 2 ]; then
8
- echo "Usage: $0 <new_mainnet_tag> <new_devnet_tag>"
9
- exit 1
+if [[ "$1" == "-h" || "$1" == "--help" || $# -ne 2 ]]; then
+ cat << EOF
+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
17
fi
18
19
NEW_MAINNET_TAG="$1"
0 commit comments