From: Harald Hoyer Date: Fri, 24 Jul 2009 08:42:17 +0000 (+0200) Subject: dracut: print help for unknow options X-Git-Tag: 0.7~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13beb248bc4e560898095a7701b92ddac98ebba8;p=platform%2Fupstream%2Fdracut.git dracut: print help for unknow options --- diff --git a/dracut b/dracut index 44296b8..3c6d846 100755 --- 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