Skip to content

Commit

Permalink
Add --db-file option for easier testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Nov 29, 2015
1 parent 8ac60dc commit 942344c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/build-project-list.pl
Expand Up @@ -28,8 +28,10 @@
my $github_token_file = GITHUB_TOKEN_FILE;
my $interval = 5;
my $logos_dir = LOGOS_DIR;
my $db_file = DB_FILE;

GetOptions(
'db-file=s' => \$db_file,
'github-token-file=s' => \$github_token_file,
'help|?' => \my $help,
'interval=i' => \$interval,
Expand Down Expand Up @@ -73,7 +75,10 @@ =head1 SYNOPSIS
./bin/build-project-list.pl [options]
All options are optional.
Options:
--db-file=FILE
--github-token-file=FILE
--help
--interval=N
Expand All @@ -85,6 +90,7 @@ =head1 SYNOPSIS
--restart-app
Short form (first letter of the option or more when need to disambiguate):
-d=FILE
-g=FILE
-h
-i=N
Expand All @@ -99,6 +105,12 @@ =head1 OPTIONS
=over 8
=item B<--db-file=FILE>
An SQLite file where the modules database will be written. Will be created
if does not exist. B<Default to:> C<modulesperl6.db> in the current
directory.
=item B<--github-token-file=FILE>
A file containing a GitHub token the build script can use to make API requests.
Expand Down

0 comments on commit 942344c

Please sign in to comment.