line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package exact::cli; |
2
|
|
|
|
|
|
|
# ABSTRACT: Command-line interface helper utilities extension for exact |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
198348
|
use 5.014; |
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
4
|
use exact; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
9
|
|
6
|
1
|
|
|
1
|
|
526
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
339
|
use Util::CommandLine 1.04 (); |
|
1
|
|
|
|
|
39512
|
|
|
1
|
|
|
|
|
86
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '1.06'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub import { |
12
|
1
|
|
|
1
|
|
11
|
my ( $self, $caller ) = @_; |
13
|
1
|
|
33
|
|
|
3
|
$caller //= caller(); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
2
|
my @methods = qw( options pod2usage readmode singleton ); |
16
|
|
|
|
|
|
|
{ |
17
|
1
|
|
|
1
|
|
34
|
no strict 'refs'; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
247
|
|
|
1
|
|
|
|
|
1
|
|
18
|
1
|
|
|
|
|
2
|
for (@methods) { |
19
|
4
|
|
|
|
|
6
|
my $method = "Util::CommandLine::$_"; |
20
|
4
|
50
|
|
|
|
6
|
*{ $caller . '::' . $_ } = \&$method unless ( defined &{ $caller . '::' . $_ } ); |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
15
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
2
|
for ('podhelp') { |
24
|
1
|
50
|
|
|
|
1
|
*{ $caller . '::' . $_ } = \&$_ unless ( defined &{ $caller . '::' . $_ } ); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
5
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub podhelp { |
30
|
0
|
|
|
0
|
1
|
|
Util::CommandLine::options(); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |