Skip to content

Commit

Permalink
Fix typo in help. Handle invalid options
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuderman committed Feb 23, 2024
1 parent 5752ec6 commit 1f4240d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/tag-and-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $(hi DESCRIPTION)
GitHub action.
$(hi SYNOPSIS)
$SCRIPT --size DATE --latest TAG_NAME
$SCRIPT --since DATE --latest TAG_NAME
$(hi OPTIONS)
-l|--latest the tag name of the last commit that was tagged. Default to $LATEST
Expand Down Expand Up @@ -60,6 +60,10 @@ while [[ $# > 0 ]] ; do
help
exit
;;
*)
echo "Invalid option $1"
echo "Run $(hi $SCRIPT help) for usage information"
exit
esac
shift
done
Expand Down

0 comments on commit 1f4240d

Please sign in to comment.