line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package MooseX::App::Role::Common; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
|
|
|
|
|
|
|
5
|
15
|
|
|
15
|
|
16773
|
use 5.010; |
|
15
|
|
|
|
|
60
|
|
6
|
15
|
|
|
15
|
|
93
|
use utf8; |
|
15
|
|
|
|
|
35
|
|
|
15
|
|
|
|
|
104
|
|
7
|
|
|
|
|
|
|
|
8
|
15
|
|
|
15
|
|
426
|
use namespace::autoclean; |
|
15
|
|
|
|
|
41
|
|
|
15
|
|
|
|
|
105
|
|
9
|
15
|
|
|
15
|
|
1240
|
use Moose::Role; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
123
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has extra_argv => ( |
12
|
|
|
|
|
|
|
is => 'rw', |
13
|
|
|
|
|
|
|
isa => 'ArrayRef', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'help_flag' => ( |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
isa => 'Bool', |
19
|
|
|
|
|
|
|
traits => ['MooseX::App::Meta::Role::Attribute::Option'], |
20
|
|
|
|
|
|
|
cmd_flag => 'help', |
21
|
|
|
|
|
|
|
cmd_aliases => [ qw(h usage ?) ], # LOCALIZE |
22
|
|
|
|
|
|
|
cmd_type => 'proto', |
23
|
|
|
|
|
|
|
cmd_position => 99999, |
24
|
|
|
|
|
|
|
documentation => 'Prints this usage information.', # LOCALIZE |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |