diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-build.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 1deaea58a62c..d90b902aeb09 100644 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -77,7 +77,7 @@ EOF elsif ($arg eq "--attr" or $arg eq "-A") { $n++; - die "$0: `--attr' requires an argument\n" unless $n < scalar @ARGV; + die "$0: `$arg' requires an argument\n" unless $n < scalar @ARGV; push @instArgs, ("--attr", $ARGV[$n]); } @@ -87,6 +87,13 @@ EOF $n += 2; } + elsif ($arg eq "--log-type") { + $n++; + die "$0: `$arg' requires an argument\n" unless $n < scalar @ARGV; + push @instArgs, ($arg, $ARGV[$n]); + push @buildArgs, ($arg, $ARGV[$n]); + } + elsif ($arg eq "--option") { die "$0: `$arg' requires two arguments\n" unless $n + 2 < scalar @ARGV; push @instArgs, ($arg, $ARGV[$n + 1], $ARGV[$n + 2]); |