Only display summary if --verbose is given, normally say nothing like all
other make commands.
use Data::Dump 'pp';
use Font::TTF::Font;
+use Getopt::Long;
+
+our $VERSION = '1.00';
+
+GetOptions(my %opt,
+ 'verbose|v!',
+);
my ($ttfuri, $outfile) = @ARGV;
$ttfuri or die "usage error\n";
say pp(\%meta), ',';
my $support = $ttf->{cmap}->find_ms->{val};
- warn scalar keys %$support, " characters read from $ttfname\n";
+ warn scalar keys %$support, " characters read from $ttfname\n"
+ if $opt{verbose};
say pp(sort { $a <=> $b } keys %$support);
}
=head1 SYNOPSIS
- mkttfinfo <font.ttf> [<output.inc.pl>]
+ mkttfinfo [-v] <font.ttf> [<output.inc.pl>]
=head1 AUTHOR