Added missing "--" check for getopt

This commit is contained in:
Alex Paarfus
2023-06-27 12:48:48 -04:00
parent 659c085a63
commit 57026af5d9

View File

@@ -91,6 +91,7 @@ main() {
-h | --help ) usage; return 0;; -h | --help ) usage; return 0;;
-l | --low ) settings['low']="${2}"; shift;; -l | --low ) settings['low']="${2}"; shift;;
-H | --high ) settings['high']="${2}"; shift;; -H | --high ) settings['high']="${2}"; shift;;
-- ) shift; break;;
* ) * )
printf '%s\n' "Unknown option: '${1}'" >&2 printf '%s\n' "Unknown option: '${1}'" >&2
usage usage