diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-21T15·04+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-21T15·04+0200 |
commit | e0a068cb97225dcdc539c8989e96013399e1f9c9 (patch) | |
tree | b0ed653708422986b56b13d4502bea14052397bc /scripts/nix-build.in | |
parent | 4ca5a9dcfd577487f8a5b192e8ec525c5baad8cb (diff) |
nix-shell: Barf if -p and -E are both used
Closes #454, #455.
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 5745a1e06e48..5e988cc411f8 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -217,6 +217,8 @@ for (my $n = 0; $n < scalar @ARGV; $n++) { } } +die "$0: ‘-p’ and ‘-E’ are mutually exclusive\n" if $packages && $fromArgs; + if ($packages) { push @instArgs, "--expr"; @exprs = ( |