Add help information.

This commit is contained in:
2026-03-02 15:38:41 +01:00
parent 6bc2145612
commit 4240b99f84

View File

@@ -24,9 +24,18 @@
set -euo pipefail
if [ $? -gt 1 ]
if [ $# -gt 1 ]
then
echo "Too many arguments"
echo "Usage: $0 [COUNT]"
exit 1
elif [ $# -eq 1 ] && [ "$1" = "-h" ]
then
echo "Usage: $0 [COUNT]"
exit 0
elif [ $# -eq 1 ] && [ "$1" -le 0 ]
then
echo "COUNT must be a positive integer"
exit 1
fi