| 1 | #!/usr/local/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use FindBin; | ||
| 5 | use File::Spec::Functions; | ||
| 6 | use lib catfile($FindBin::Bin, '..', 'lib'); | ||
| 7 | use App::MadEye; | ||
| 8 | use Getopt::Long; | ||
| 9 | |||
| 10 | my $conffname = 'config.yaml'; | ||
| 11 | my $version = 0; | ||
| 12 | GetOptions( | ||
| 13 | 'config=s' => \$conffname, | ||
| 14 | 'version' => \$version, | ||
| 15 | ) or die "Usage: $0 -c config.yaml"; | ||
| 16 | |||
| 17 | if ($version) { | ||
| 18 | print "App::MadEye/$App::MadEye::VERSION\n"; | ||
| 19 | exit; | ||
| 20 | } | ||
| 21 | |||
| 22 | App::MadEye->new({config => $conffname})->run; | ||
| 23 |