Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
binary => 1,
eol => $/,
}); # or Text::CSV
+my $quiet = 0;
my $source_dir = ".";
my $target_dir = ".";
my $output_txt;
"D=s" => \$target_dir,
"S=s" => \$source_dir,
"O=s" => \$output_txt,
+ "q" => \$quiet,
);
if (!-d $source_dir) {
$asns{$asn}->{pool_v4}->add($cidr);
- if ($. % 4096 == 0) {
+ if (!$quiet && $. % 4096 == 0) {
print STDERR "\r\e[2K$. entries";
}
}
}
- print STDERR "\r\e[2K$. entries total\n";
+ print STDERR "\r\e[2K$. entries total\n" unless ($quiet);
close($fh);
$asns{$asn}->{pool_v6}->add($cidr);
- if ($. % 4096 == 0) {
+ if (!$quiet && $. % 4096 == 0) {
print STDERR "\r\e[2K$. entries";
}
}
}
- print STDERR "\r\e[2K$. entries total\n";
+ print STDERR "\r\e[2K$. entries total\n" unless ($quiet);
close($fh);