« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Mixin.pm
↑ Summary
blib/lib/Perl/PrereqScanner/NotQuiteLite/Tokens.pm »
| 1 | #!perl | ||||||||||||
| 2 | |||||||||||||
| 3 | 7 | ▶ | BEGIN { pop @INC if $INC[-1] eq '.' } | ||||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||||
| 4 | |||||||||||||
| 5 | 7 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 7 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 7 | ▶ | use lib (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 7 | ▶ | use Perl::PrereqScanner::NotQuiteLite::App; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 7 | ▶ | use Getopt::Long; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 7 | ▶ | use Pod::Usage; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | |||||||||||||
| 12 | 7 | GetOptions(\my %opts, qw/ | |||||||||||
| 13 | inc|lib|I=s@ | ||||||||||||
| 14 | libs|scan_also|scan-also|also=s@ | ||||||||||||
| 15 | parsers|parser=s@ | ||||||||||||
| 16 | version | ||||||||||||
| 17 | help | ||||||||||||
| 18 | json | ||||||||||||
| 19 | cpanfile | ||||||||||||
| 20 | save_cpanfile|save-cpanfile | ||||||||||||
| 21 | exclude_core|exclude-core | ||||||||||||
| 22 | perl_version|perl-version=s | ||||||||||||
| 23 | allow_test_pms|allow-test-pms | ||||||||||||
| 24 | features|feature=s@ | ||||||||||||
| 25 | base_dir|base-dir=s | ||||||||||||
| 26 | ignore_re|ignore-re=s | ||||||||||||
| 27 | ignore=s@ | ||||||||||||
| 28 | optional_re|optional-re=s | ||||||||||||
| 29 | optional=s@ | ||||||||||||
| 30 | private_re|private-re=s | ||||||||||||
| 31 | private=s@ | ||||||||||||
| 32 | recommends | ||||||||||||
| 33 | suggests | ||||||||||||
| 34 | develop | ||||||||||||
| 35 | blib | ||||||||||||
| 36 | use_index|use-index=s | ||||||||||||
| 37 | perl_minimum_version | ||||||||||||
| 38 | verbose | ||||||||||||
| 39 | /); | ||||||||||||
| 40 | |||||||||||||
| 41 | 7 | ▶ | if ($opts{version}) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 42 | 0 | ▶ | print "scan-perl-prereqs-nqlite v" . (Perl::PrereqScanner::NotQuiteLite->VERSION || 'DEV') . "\n"; | ||||||||||
|
Condition0%0/2
'Perl::PrereqScanner::NotQuiteLite'->VERSION || 'DEV'
MC/DC0%0/1
'Perl::PrereqScanner::NotQuiteLite'->VERSION || 'DEV'
'Perl::PrereqScanner::NotQuiteLite'->VERSION
Truth table0%0/2
A
A= 'Perl::PrereqScanner::NotQuiteLite'->VERSION
| |||||||||||||
| 43 | 0 | exit; | |||||||||||
| 44 | } | ||||||||||||
| 45 | |||||||||||||
| 46 | 7 | ▶ | if ($opts{help}) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 47 | 0 | pod2usage(-verbose => 1); | |||||||||||
| 48 | 0 | exit; | |||||||||||
| 49 | } | ||||||||||||
| 50 | |||||||||||||
| 51 | 7 | ▶ | lib->import(@{$opts{inc}}) if $opts{inc}; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 52 | |||||||||||||
| 53 | 7 | for my $key (keys %opts) { | |||||||||||
| 54 | 20 | ▶ | next unless $key =~ /\-/; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 55 | 0 | (my $replaced_key = $key) =~ s/\-/_/g; | |||||||||||
| 56 | 0 | $opts{$replaced_key} = $opts{$key}; | |||||||||||
| 57 | } | ||||||||||||
| 58 | |||||||||||||
| 59 | 7 | $opts{print} = 1; | |||||||||||
| 60 | |||||||||||||
| 61 | 7 | Perl::PrereqScanner::NotQuiteLite::App->new(%opts)->run(@ARGV); | |||||||||||
| 62 | |||||||||||||
| 63 | __END__ | ||||||||||||