Fix multiword --with- arguments.

This commit is contained in:
Themaister 2014-06-05 11:45:44 +02:00
parent 247059ad4d
commit a39b64e443

View File

@ -61,10 +61,10 @@ parse_input() # Parse stuff :V
eval "HAVE_$opt=no"
;;
--with-*)
arg=${1##--with-}
val=${arg##*=}
arg="${1##--with-}"
val="${arg##*=}"
opt_exists "${arg%%=*}"
eval "$opt=$val"
eval "$opt=\"$val\""
;;
-h|--help) print_help; exit 0;;
*) print_help; exit 1;;