From c673b32a53b02a8de2ced7b6a7b5705866b64ebb Mon Sep 17 00:00:00 2001 From: "Matthew Horsfall (alh)" Date: Thu, 29 Mar 2012 11:25:36 -0400 Subject: [PATCH] Fix --authors to work and fix documentation as well. The '=s' is needed for Getopt::Long --- Porting/checkAUTHORS.pl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Porting/checkAUTHORS.pl b/Porting/checkAUTHORS.pl index f42912f..dbc93ad 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 '." +die "Can't locate '$author_file'. Specify it with '--authors '." unless -f $author_file; my $map = generate_known_author_map(); -- 2.7.4