diff options
author | Matthew Horsfall (alh) <mhorsfall@darmstadtium.(none)> | 2012-03-29 11:25:36 -0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 17:51:53 -0700 |
commit | c673b32a53b02a8de2ced7b6a7b5705866b64ebb (patch) | |
tree | 33051af5adf00666970c68bf25121cb893dd1c41 /Porting/checkAUTHORS.pl | |
parent | fcb8da00bbf96c055c5bfb9ae7a8086051c6f3b0 (diff) | |
download | perl-c673b32a53b02a8de2ced7b6a7b5705866b64ebb.tar.gz |
Fix --authors to work and fix documentation as well.
The '=s' is needed for Getopt::Long
Diffstat (limited to 'Porting/checkAUTHORS.pl')
-rwxr-xr-x | Porting/checkAUTHORS.pl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Porting/checkAUTHORS.pl b/Porting/checkAUTHORS.pl index f42912fe59..dbc93adb17 100755 --- a/Porting/checkAUTHORS.pl +++ b/Porting/checkAUTHORS.pl @@ -12,16 +12,17 @@ my (%authors, %untraced, %patchers, %committers, %real_names); my $result = GetOptions ( # modes - "who" => \$who, - "rank" => \$rank, + "who" => \$who, + "rank" => \$rank, "thanks-applied" => \$ta, - "missing" => \$ack , - "tap" => \$tap, + "missing" => \$ack , + "tap" => \$tap, + # modifiers - "authors" => \$author_file, - "percentage" => \$percentage, # show as %age - "cumulative" => \$cumulative, - "reverse" => \$reverse, + "authors=s" => \$author_file, + "percentage" => \$percentage, # show as %age + "cumulative" => \$cumulative, + "reverse" => \$reverse, ); if (!$result or ( $rank + $ta + $who + $ack + $tap != 1 ) or !@ARGV) { @@ -29,7 +30,7 @@ if (!$result or ( $rank + $ta + $who + $ack + $tap != 1 ) or !@ARGV) { } $author_file ||= './AUTHORS'; -die "Can't locate '$author_file'. Specify it with '--author <path>'." +die "Can't locate '$author_file'. Specify it with '--authors <path>'." unless -f $author_file; my $map = generate_known_author_map(); |