From 1bb9e0d130f3c6acb602d6d9f1ca4acebbe96677 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com> Date: Fri, 21 Nov 2025 11:52:56 +0200 Subject: [PATCH] chore(scripts: fix help call in tag.sh (#3606) --- scripts/tag.sh | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/scripts/tag.sh b/scripts/tag.sh index 5b637637..62b28e99 100755 --- a/scripts/tag.sh +++ b/scripts/tag.sh @@ -4,9 +4,25 @@ set -e DRY_RUN=1 +helps() { + cat <<- EOF +Usage: $0 TAGVERSION [-t] + +Creates git tags for public Go packages. + +ARGUMENTS: + TAGVERSION Tag version to create, for example v1.0.0 + +OPTIONS: + -t Execute git commands (default: dry run) +EOF + exit 0 +} + + if [ $# -eq 0 ]; then echo "Error: Tag version is required" - help + helps fi TAG=$1 @@ -24,20 +40,6 @@ while getopts "t" opt; do esac done -help() { - cat <<- EOF -Usage: $0 TAGVERSION [-t] - -Creates git tags for public Go packages. - -ARGUMENTS: - TAGVERSION Tag version to create, for example v1.0.0 - -OPTIONS: - -t Execute git commands (default: dry run) -EOF - exit 0 -} if [ "$DRY_RUN" -eq 1 ]; then echo "Running in dry-run mode"