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:34 +02:00
parent 4ca5a9dcfd
commit e0a068cb97
1 changed files with 2 additions and 0 deletions

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 = (