diff --git a/util/grub-install.in b/util/grub-install.in index 23c3e0b2b..3b58f09ec 100644 --- a/util/grub-install.in +++ b/util/grub-install.in @@ -170,6 +170,11 @@ for option in "$@"; do # This is an undocumented feature... --debug) debug=yes ;; + -*) + echo "Unrecognized option \`$option'" 1>&2 + usage + exit 1 + ;; *) if test "x$install_device" != x; then echo "More than one install_devices?" 1>&2