line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package MooseX::App::ParsedArgv::Value; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
|
|
|
|
|
|
|
5
|
16
|
|
|
16
|
|
453
|
use 5.010; |
|
16
|
|
|
|
|
68
|
|
6
|
16
|
|
|
16
|
|
95
|
use utf8; |
|
16
|
|
|
|
|
41
|
|
|
16
|
|
|
|
|
147
|
|
7
|
|
|
|
|
|
|
|
8
|
16
|
|
|
16
|
|
404
|
use Moose; |
|
16
|
|
|
|
|
38
|
|
|
16
|
|
|
|
|
125
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'raw' => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
isa => 'Str', |
13
|
|
|
|
|
|
|
predicate => 'has_raw', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'value' => ( |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
required => 1, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has 'position' => ( |
22
|
|
|
|
|
|
|
is => 'ro', |
23
|
|
|
|
|
|
|
isa => 'Int', |
24
|
|
|
|
|
|
|
default => 999, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
MooseX::App::ParsedArgv::Value - Parsed value from @ARGV |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Every instance of this class represents a value from @ARGV |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 METHODS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 key |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Parameter value or option key |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 value |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Scalar value |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 raw |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Raw value as supplied by the user |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |