Change the repository URL to https, bump version, ready to release
[cpan-testers-parsereport.git] / bin / ctsolvereports
blob1950cd7fca093bddd0f1372d52eb0514840228ec
1 #!/usr/bin/perl -- -*- mode: cperl -*-
3 =head1 NAME
5 ctsolvereports - Analyse reports from a YAML file
7 =head1 SYNOPSIS
9 ctsolvereports [options] yamlfile
11 =head1 OPTIONS
13 =over 8
15 =cut
17 my $optpod = <<'=back';
19 =item B<--help|h>
21 Prints a brief message and exists.
23 =back
25 use strict;
26 use warnings;
28 use CPAN::Testers::ParseReport;
29 use Getopt::Long;
30 use Pod::Usage qw(pod2usage);
31 use YAML::Syck;
33 our %Opt;
34 my @opt = $optpod =~ /B<--(\S+)>/g;
35 for (@opt) {
36 $_ .= "!" unless /[+!=]/;
39 GetOptions(\%Opt,
40 @opt,
41 ) or pod2usage(2);
43 if ($Opt{help}) {
44 pod2usage(0);
47 if (1 != @ARGV) {
48 pod2usage(2);
51 my $data = YAML::Syck::LoadFile($ARGV[0]);
52 CPAN::Testers::ParseReport::solve($data);
55 __END__