nix-shell: Barf if -p and -E are both used

Closes #454, #455.
This commit is contained in:
Eelco Dolstra
2015-05-21 17:04:43 +02:00
parent 4ca5a9dcfd
commit e0a068cb97
+2
View File
@@ -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 = (