Skip to content

Commit 026f6f2

Browse files
authored
Merge pull request #69 from metacpan/mickey/author_script_module
bin/author - support alternative input file
2 parents 08072d9 + ce45bdf commit 026f6f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/author.pl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@
5151
};
5252

5353
# args
54-
my $pauseid;
55-
GetOptions( "pauseid=s" => \$pauseid );
54+
my ( $pauseid, $whois_file );
55+
GetOptions(
56+
"whois_file=s" => \$whois_file,
57+
"pauseid=s" => \$pauseid,
58+
);
5659

5760
# setup
5861
my $es = MetaCPAN::ES->new( type => "author" );
5962

6063
log_info {'Reading 00whois'};
61-
my $authors_data = read_00whois();
64+
my $authors_data = $whois_file || read_00whois();
6265

6366
if ($pauseid) {
6467
log_info {"Indexing 1 author"};

0 commit comments

Comments
 (0)