line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Getopt::Kingpin::Arg; |
2
|
28
|
|
|
28
|
|
428
|
use 5.008001; |
|
28
|
|
|
|
|
113
|
|
3
|
28
|
|
|
28
|
|
131
|
use strict; |
|
28
|
|
|
|
|
45
|
|
|
28
|
|
|
|
|
559
|
|
4
|
28
|
|
|
28
|
|
142
|
use warnings; |
|
28
|
|
|
|
|
62
|
|
|
28
|
|
|
|
|
879
|
|
5
|
28
|
|
|
28
|
|
151
|
use Getopt::Kingpin::Base -base; |
|
28
|
|
|
|
|
64
|
|
|
28
|
|
|
|
|
221
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "0.09"; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub help_name { |
10
|
92
|
|
|
92
|
1
|
130
|
my $self = shift; |
11
|
92
|
|
|
|
|
116
|
my $mode = shift; |
12
|
|
|
|
|
|
|
|
13
|
92
|
100
|
|
|
|
169
|
if (not defined $mode) { |
14
|
71
|
|
|
|
|
93
|
$mode = 0; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
92
|
|
|
|
|
1364
|
my $ret = '<' . $self->name . '>'; |
18
|
92
|
100
|
100
|
|
|
854
|
if ($mode and $self->is_cumulative) { |
19
|
3
|
|
|
|
|
23
|
$ret = $ret . '...'; |
20
|
|
|
|
|
|
|
} |
21
|
92
|
100
|
|
|
|
1465
|
if (not $self->_required) { |
22
|
18
|
|
|
|
|
131
|
$ret = '[' . $ret . ']'; |
23
|
|
|
|
|
|
|
} |
24
|
92
|
|
|
|
|
937
|
return $ret; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |