line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CXC::Form::Tiny::Plugin::OptArgs2; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: A Plugin to interface Form::Tiny with OptArgs2 |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
2166210
|
use v5.20; |
|
5
|
|
|
|
|
73
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
33
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
156
|
|
8
|
5
|
|
|
5
|
|
30
|
use experimental 'signatures', 'postderef'; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
45
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.11'; |
11
|
|
|
|
|
|
|
|
12
|
5
|
|
|
5
|
|
1140
|
use parent 'Form::Tiny::Plugin'; |
|
5
|
|
|
|
|
21
|
|
|
5
|
|
|
|
|
29
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
## no critic (Subroutines::ProtectPrivateSubs) |
15
|
|
|
|
|
|
|
|
16
|
15
|
|
|
15
|
1
|
395888
|
sub plugin ( $self, $caller, $context ) { |
|
15
|
|
|
|
|
40
|
|
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
28
|
|
17
|
|
|
|
|
|
|
return { |
18
|
30
|
|
|
|
|
110
|
roles => [ q{CXC::Form::Tiny::Plugin::OptArgs2::Class}, ], |
19
|
|
|
|
|
|
|
meta_roles => [ q{CXC::Form::Tiny::Plugin::OptArgs2::Meta}, ], |
20
|
|
|
|
|
|
|
subs => { |
21
|
30
|
|
|
30
|
|
49
|
option => sub ( @options ) { |
|
30
|
|
|
|
|
280
|
|
22
|
30
|
|
|
|
|
128
|
$caller->form_meta->_dsl_add_option( $context->$*, @options ); |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
|
25
|
4
|
|
|
4
|
|
11
|
argument => sub ( @options ) { |
|
4
|
|
|
|
|
49
|
|
|
4
|
|
|
|
|
48
|
|
26
|
4
|
|
|
|
|
17
|
$caller->form_meta->_dsl_add_argument( $context->$*, @options ); |
27
|
|
|
|
|
|
|
}, |
28
|
|
|
|
|
|
|
|
29
|
6
|
|
|
6
|
|
12
|
optargs_opts => sub ( @options ) { |
|
6
|
|
|
|
|
165261
|
|
|
6
|
|
|
|
|
17
|
|
30
|
6
|
|
|
|
|
22
|
$caller->form_meta->_dsl_optargs_opts( $context->$*, @options ); |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
|
35
|
15
|
|
|
|
|
228
|
}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# |
39
|
|
|
|
|
|
|
# This file is part of CXC-Form-Tiny-Plugin-OptArgs2 |
40
|
|
|
|
|
|
|
# |
41
|
|
|
|
|
|
|
# This software is Copyright (c) 2023 by Smithsonian Astrophysical Observatory. |
42
|
|
|
|
|
|
|
# |
43
|
|
|
|
|
|
|
# This is free software, licensed under: |
44
|
|
|
|
|
|
|
# |
45
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
46
|
|
|
|
|
|
|
# |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |