line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
37455
|
use 5.006; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
101
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package MouseX::App::Cmd; # git description: v0.29-32-g69e2d04 |
4
|
2
|
|
|
2
|
|
9
|
use Mouse; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
5
|
2
|
|
|
2
|
|
1507
|
use English '-no_match_vars'; |
|
2
|
|
|
|
|
4123
|
|
|
2
|
|
|
|
|
10
|
|
6
|
2
|
|
|
2
|
|
641
|
use File::Basename (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
49
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.30'; # VERSION |
9
|
2
|
|
|
2
|
|
880
|
use namespace::autoclean; |
|
2
|
|
|
|
|
14649
|
|
|
2
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
extends 'Mouse::Object', 'App::Cmd'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub BUILDARGS { |
13
|
2
|
|
|
2
|
1
|
193
|
my ( undef, @arg ) = @_; |
14
|
2
|
50
|
|
|
|
22
|
return {} if !@arg; |
15
|
0
|
0
|
|
|
|
0
|
return { arg => $arg[0] } if 1 == @arg; |
16
|
0
|
|
|
|
|
0
|
return {@arg}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub BUILD { |
20
|
2
|
|
|
2
|
1
|
4
|
my $self = shift; |
21
|
2
|
|
|
|
|
9
|
my $class = blessed $self; |
22
|
2
|
|
|
|
|
130
|
$self->{arg0} = File::Basename::basename($PROGRAM_NAME); |
23
|
2
|
|
|
|
|
18
|
$self->{command} = $class->_command( {} ); |
24
|
1
|
|
|
|
|
4394
|
$self->{full_arg0} = $PROGRAM_NAME; |
25
|
1
|
|
|
|
|
4
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
## no critic (Modules::RequireExplicitInclusion) |
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# ABSTRACT: Mashes up MouseX::Getopt and App::Cmd |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |