summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/off3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/functions/off b/etc/functions/off
index 7ecaec9..fdab3d6 100644
--- a/etc/functions/off
+++ b/etc/functions/off
@@ -1,5 +1,5 @@
## vim:ft=zsh
-autoload warn
+autoload warn fdie
typeset filesystem line IFS=$'\n'
typeset -a filesystems
typeset tune2fs
@@ -14,6 +14,7 @@ while [[ $1 == -* ]] {
-n) simulate=1 ;;
-r) reboot=1 ;;
--force) force=1 ;;
+ *) fdie "Unrecognized option: $1"; return 1 ;;
esac
shift
}