mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
nix-copy-closure: Add -v flag
And make exportPath() less spammy by default.
This commit is contained in:
parent
db55940d9e
commit
ccf31dbc25
4 changed files with 15 additions and 3 deletions
|
@ -16,8 +16,6 @@ binmode STDERR, ":encoding(utf8)";
|
|||
|
||||
my $debug = defined $ENV{NIX_DEBUG_HOOK};
|
||||
|
||||
setVerbosity(0); # make exportPath() less verbose
|
||||
|
||||
|
||||
# General operation:
|
||||
#
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue