lib/App/Sandy/CLI.pm

filter: Statementstmt 100% 3 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 4 / 4 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/App/Sandy/BGZF.pm ↑ Summary lib/App/Sandy/CLI/App.pm »
1 package App::Sandy::CLI;
2 # ABSTRACT: Base class for command line interface.
3  
4 1 ▶use App::Sandy::Base 'class';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use Path::Class 'file';
6  
7 our $VERSION = '0.25'; # VERSION
8  
9 has 'argv' => (
10 is => 'ro',
11 isa => 'ArrayRef',
12 default => sub { \@ARGV }
13 );
14  
15 has 'progname' => (
16 is => 'ro',
17 isa => 'Str',
18 default => file($0)->basename
19 );
20  
21 sub opt_spec {
22 'help|h',
23 'man|H'
24 }
25  
26 __END__
« lib/App/Sandy/BGZF.pm ↑ Summary lib/App/Sandy/CLI/App.pm »