line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package MooseX::App::Role::Common; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
|
|
|
|
|
|
|
5
|
15
|
|
|
15
|
|
15375
|
use 5.010; |
|
15
|
|
|
|
|
63
|
|
6
|
15
|
|
|
15
|
|
97
|
use utf8; |
|
15
|
|
|
|
|
39
|
|
|
15
|
|
|
|
|
98
|
|
7
|
|
|
|
|
|
|
|
8
|
15
|
|
|
15
|
|
372
|
use namespace::autoclean; |
|
15
|
|
|
|
|
62
|
|
|
15
|
|
|
|
|
104
|
|
9
|
15
|
|
|
15
|
|
1116
|
use Moose::Role; |
|
15
|
|
|
|
|
49
|
|
|
15
|
|
|
|
|
108
|
|
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; |