dracut: print help for unknow options
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Jul 2009 08:42:17 +0000 (10:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Jul 2009 09:54:08 +0000 (11:54 +0200)
dracut

diff --git a/dracut b/dracut
index 44296b8..3c6d846 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -65,6 +65,7 @@ while (($# > 0)); do
        -H|--hostonly) hostonly="-h" ;;
        -i|--include) include_src="$2"; include_target="$3"; shift 2;;
        -I|--install) install_items="$2"; shift;;
+       -*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;;
        *) break ;;
     esac
     shift