-case "$1" in
- -h|--help)
- cat <<EOF
-Usage: sysd-mail-once [-t TO_ADDRESS] [-ERRORS] SERVICE COMMAND [ARGS...]
-For systemd timers, email (with exim) on repeated failure & success after failure.
+dryrun=false
+while [[ $1 == -* ]]; do
+ case "$1" in
+ -h|--help)
+ cat <<EOF
+Usage: sysd-mail-once [-t TO_ADDRESS] [-ERRORS] SERVICE COMMAND [COMMAND_ARGS...]
+
+For use with systemd timers, to email (with exim) on repeated failure &
+success after failure.