add more -h|--h|--help|-help|?

This commit is contained in:
Tobias Powalowski 2024-08-13 19:37:33 +02:00
parent 16015d5abc
commit 73de7f47c0
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ _DIR="${2}"
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case ${1} in case ${1} in
-name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;; -name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;;
-h|--h|?) _usage ;; -h|--h|-help|--help|?) _usage ;;
esac esac
shift shift
done done

View file

@ -43,7 +43,7 @@ while [ $# -gt 0 ]; do
_abort "Unable to write to path!" "${1}" _abort "Unable to write to path!" "${1}"
fi fi
;; ;;
-h) _usage -h|--h|-help|--help|?) _usage
;; ;;
esac esac
shift shift