| 1 | #!/usr/local/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | use Getopt::Long qw(GetOptions); | ||
| 6 | use Module::Packaged::Report; | ||
| 7 | |||
| 8 | my %opts; | ||
| 9 | GetOptions(\%opts, | ||
| 10 | 'test', | ||
| 11 | 'real', | ||
| 12 | 'dir=s', | ||
| 13 | 'help', | ||
| 14 | ) or Module::Packaged::Report::usage(); | ||
| 15 | |||
| 16 | my $mpr = Module::Packaged::Report->new(%opts); | ||
| 17 | $mpr->collect_data; | ||
| 18 | $mpr->generate_html_report; | ||
| 19 |