about summary refs log tree commit diff
path: root/scripts/nix-copy-closure.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-19T23·52+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-19T23·52+0200
commitccf31dbc25b8fe1ac0fba33c7205ba75d4f0adfe (patch)
tree4bb4bc7b590582a178dcbbfd24c43e6ede05d5fb /scripts/nix-copy-closure.in
parentdb55940d9e9fd502b17522d011dfd941e3f69c5d (diff)
nix-copy-closure: Add -v flag
And make exportPath() less spammy by default.
Diffstat (limited to 'scripts/nix-copy-closure.in')
-rwxr-xr-xscripts/nix-copy-closure.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in
index d7a2c973948b..55d108fbb4c2 100755
--- a/scripts/nix-copy-closure.in
+++ b/scripts/nix-copy-closure.in
@@ -25,6 +25,7 @@ my $toMode = 1;
 my $includeOutputs = 0;
 my $dryRun = 0;
 my $useSubstitutes = 0;
+my $verbosity = 1;
 
 
 # !!! Copied from nix-pack-closure, should put this in a module.
@@ -61,6 +62,10 @@ while (@ARGV) {
     elsif ($arg eq "--use-substitutes" || $arg eq "-s") {
         $useSubstitutes = 1;
     }
+    elsif ($arg eq "-v") {
+        $verbosity++;
+        setVerbosity($verbosity);
+    }
     elsif (!defined $sshHost) {
         $sshHost = $arg;
     }