line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Getopt::Kingpin::Arg; |
2
|
31
|
|
|
31
|
|
534
|
use 5.008001; |
|
31
|
|
|
|
|
118
|
|
3
|
31
|
|
|
31
|
|
177
|
use strict; |
|
31
|
|
|
|
|
67
|
|
|
31
|
|
|
|
|
695
|
|
4
|
31
|
|
|
31
|
|
189
|
use warnings; |
|
31
|
|
|
|
|
88
|
|
|
31
|
|
|
|
|
1165
|
|
5
|
31
|
|
|
31
|
|
211
|
use Getopt::Kingpin::Base -base; |
|
31
|
|
|
|
|
72
|
|
|
31
|
|
|
|
|
233
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "0.11"; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub help_name { |
10
|
103
|
|
|
103
|
1
|
151
|
my $self = shift; |
11
|
103
|
|
|
|
|
136
|
my $mode = shift; |
12
|
|
|
|
|
|
|
|
13
|
103
|
100
|
|
|
|
203
|
if (not defined $mode) { |
14
|
79
|
|
|
|
|
117
|
$mode = 0; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
103
|
|
|
|
|
1654
|
my $ret = '<' . $self->name . '>'; |
18
|
103
|
100
|
100
|
|
|
1087
|
if ($mode and $self->is_cumulative) { |
19
|
3
|
|
|
|
|
22
|
$ret = $ret . '...'; |
20
|
|
|
|
|
|
|
} |
21
|
103
|
100
|
|
|
|
1753
|
if ($self->is_hash) { |
22
|
4
|
|
|
|
|
31
|
$ret =~ s/
|
23
|
|
|
|
|
|
|
} |
24
|
103
|
100
|
|
|
|
2455
|
if (not $self->_required) { |
25
|
22
|
|
|
|
|
165
|
$ret = '[' . $ret . ']'; |
26
|
|
|
|
|
|
|
} |
27
|
103
|
|
|
|
|
1110
|
return $ret; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |