From 30943d2dc03671299d10ee618fe7b68067e127a1 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Tue, 9 Nov 2010 18:42:59 +0000 Subject: [PATCH] Fix nixos-option, accept long arguments. svn path=/nixos/trunk/; revision=24631 --- modules/installer/tools/nixos-option.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/installer/tools/nixos-option.sh b/modules/installer/tools/nixos-option.sh index fc4380d00c47..456e2b275d0f 100644 --- a/modules/installer/tools/nixos-option.sh +++ b/modules/installer/tools/nixos-option.sh @@ -66,13 +66,14 @@ for arg; do sarg="$arg" while test "$sarg" != "-"; do case $sarg in - --*) longarg=$arg;; + --*) longarg=$arg; sarg="--";; -d*) longarg="$longarg --description";; -v*) longarg="$longarg --value";; -l*) longarg="$longarg --lookup";; -i*) longarg="$longarg --install";; -*) usage;; esac + # remove the first letter option sarg="-${sarg#??}" done ;;