blib/lib/MooX/Options/Descriptive/Usage.pm

filter: Statementstmt 85.5% 142 / 166 Branchbran 71.5% 73 / 102 Conditioncond 41.1% 7 / 17 MC/DCmcdc 10.0% 1 / 10 Subroutinesub 84.2% 16 / 19 Podpod 100% 7 / 7 totaltotal 76.6% 246 / 321 CC 63 SCAR 32.0
CC
63
Cov
78%
option_pod
60.3
text
13.0
option_help
12.3
CRAP 24.5
↑ Summary blib/lib/MooX/Options/Role.pm »
1 package MooX::Options::Descriptive::Usage;
2  
3 23 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 MooX::Options::Descriptive::Usage - Usage class
8  
9 =head1 DESCRIPTION
10  
11 Usage class to display the error message.
12  
13 This class use the full size of your terminal
14  
15 =cut
16  
17 ## no critic (ProhibitExcessComplexity)
18  
19 23 our $VERSION = "4.103";
20  
21 23 ▶use Getopt::Long::Descriptive;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 23 ▶use Module::Runtime qw(use_module);
Subroutine BEGIN: called CC=1 SCAR=0.0
23 23 ▶use Scalar::Util qw/blessed/;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 23 ▶use Text::LineFold ();
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 23 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 23 with "MooX::Locale::Passthrough";
28  
29 23 has format_doc => ( is => "lazy" );
30  
31 ## no critic (Subroutines::RequireFinalReturn, Subroutines::ProhibitUnusedPrivateSubroutines)
32  
33 18 ▶sub _build_format_doc {
Subroutine _build_format_doc: called CC=1 SCAR=0.0
34 18 my $self = shift;
35 18 +{ 's' => $self->__("String"),
36 's@' => $self->__("[Strings]"),
37 'i' => $self->__("Int"),
38 'i@' => $self->__("[Ints]"),
39 'o' => $self->__("Ext. Int"),
40 'o@' => $self->__("[Ext. Ints]"),
41 'f' => $self->__("Real"),
42 'f@' => $self->__("[Reals]"),
43 };
44 }
45  
46 23 has format_doc_long => ( is => "lazy" );
47  
48 3 ▶sub _build_format_doc_long {
Subroutine _build_format_doc_long: called CC=1 SCAR=0.0
49 3 my $self = shift;
50 3 +{ 's' => $self->__("String"),
51 's@' => $self->__("Array of Strings"),
52 'i' => $self->__("Integer"),
53 'i@' => $self->__("Array of Integers"),
54 'o' => $self->__("Extended Integer"),
55 'o@' => $self->__("Array of extended integers"),
56 'f' => $self->__("Real number"),
57 'f@' => $self->__("Array of real numbers"),
58 };
59 }
60  
61 =head1 ATTRIBUTES
62  
63 Following attributes are present and behave as GLD::Usage describe them.
64  
65 =head2 leader_text
66  
67 Text that appear on top of your message
68  
69 =head2 options
70  
71 The options spec of your message
72  
73 =cut
74  
75 23 has leader_text => ( is => "ro" );
76 23 has options => ( is => "ro" );
77  
78 =head1 METHODS
79  
80 =head2 sub_commands_text
81  
82 Return the list of sub commands if available.
83  
84 =cut
85  
86 68 ▶sub sub_commands_text {
Subroutine sub_commands_text: called CC=4 SCAR=17.9
Pod documented
87 68 my ($self) = @_;
88 68 my $sub_commands = [];
89 68 ▶ if (defined $self->{target}
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)) 0 68 68
Condition33%1/3
defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
!ll&&!rl&&r
0680
MC/DC0%0/2
defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
defined $self->{"target"} defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
Truth table33%1/3
A and B
A= defined $self->{"target"}B= defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
ABresult
0X0
100
111
90 && defined(
91 my $sub_commands_options = $self->{target}->_options_sub_commands
92 )
93 )
94 {
95 0 $sub_commands = $sub_commands_options;
96 }
97 68 ▶ return if !@$sub_commands;
Branch: 1 branch
BranchTrueFalseTotal
unless @$sub_commands 68 0 68
98 return "",
99 $self->__("SUB COMMANDS AVAILABLE: ")
100 0 . join( ', ', map { $_->{name} } @$sub_commands ), "";
101 }
102  
103 =head2 text
104  
105 Return a compact help message.
106  
107 =cut
108  
109 58 ▶sub text {
Subroutine text: called CC=13 SCAR=25.7
Pod documented
110 58 my ($self) = @_;
111 my %options_data
112 58 ▶ = defined $self->{target} ? $self->{target}->_options_data : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 58 0 58
113 my %options_config
114 = defined $self->{target}
115 ? $self->{target}->_options_config
116 58 ▶ : ( spacer => " " );
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 58 0 58
117 58 my $getopt_options = $self->options;
118  
119 58 my $lf = _get_line_fold();
120  
121 58 my @to_fold;
122 58 my $max_spec_length = 0;
123 58 for my $opt (@$getopt_options) {
124 385 ▶ if ( $opt->{desc} eq 'spacer' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt->{"desc"} eq "spacer") 60 325 385
125 60 push @to_fold, '';
126 push @to_fold,
127 60 $options_config{spacer} x ( $lf->config('ColMax') - 4 );
128 60 next;
129 }
130 325 my ( $short, $format ) = $opt->{spec} =~ /(?:\|(\w))?(?:=(.*?))?$/x;
131 325 my $format_doc_str;
132 325 ▶ $format_doc_str = $self->format_doc->{$format} if defined $format;
Branch: 1 branch
BranchTrueFalseTotal
if defined $format 51 274 325
133 $format_doc_str = 'JSON'
134 325 ▶ if defined $options_data{ $opt->{name} }{json};
Branch: 1 branch
BranchTrueFalseTotal
if defined $options_data{$opt->{"name"}}{"json"} 6 319 325
135  
136 my $spec
137 = ( defined $short ? "-" . $short . " " : "" ) . "-"
138 . ( length( $opt->{name} ) > 1 ? "-" : "" )
139 . $opt->{name}
140 325 ▶ . ( defined $format_doc_str ? "=" . $format_doc_str : "" );
Branch: 3 branches
BranchTrueFalseTotal
defined $short ? : 1 324 325
length $opt->{'name'} > 1 ? : 249 76 325
defined $format_doc_str ? : 51 274 325
141  
142 325 ▶ $max_spec_length = length($spec) if $max_spec_length < length($spec);
Branch: 1 branch
BranchTrueFalseTotal
if $max_spec_length < length $spec 74 251 325
143  
144 325 push @to_fold, $spec, $opt->{desc};
145 }
146  
147 58 my @message;
148 58 ▶ while (@to_fold) {
Branch: 1 branch
BranchTrueFalseTotal
if (@to_fold) 385 58 443
149 385 my $spec = shift @to_fold;
150 385 my $desc = shift @to_fold;
151 385 ▶ if ( length($spec) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $spec) { } 325 60 385
152 325 push @message,
153 $lf->fold(
154 " ",
155 " " x ( 6 + $max_spec_length ),
156 sprintf(
157 "%-" . ( $max_spec_length + 1 ) . "s %s",
158 $spec, $desc
159 )
160 );
161 }
162 else {
163 60 push @message, $desc, "\n";
164 }
165 }
166  
167 58 return join( "\n",
168 $self->leader_text, "", join( "", @message ),
169 $self->sub_commands_text );
170 }
171  
172 # set the column size of your terminal into the wrapper
173 68 ▶sub _get_line_fold {
Subroutine _get_line_fold: called CC=3 SCAR=11.3
174 my $columns = $ENV{TEST_FORCE_COLUMN_SIZE}
175 68 ▶ || eval {
Condition80%4/5
$ENV{'TEST_FORCE_COLUMN_SIZE'} || eval { do { &use_module('Term::Size::Any'); [Term::Size::Any::chars()]->[0] } } || 80
l!l
5810
$ENV{"TEST_FORCE_COLUMN_SIZE"} or eval { do { &use_module("Term::Size::Any"); [Term::Size::Any::chars()]->[0] } }
l!l&&r!l&&!r
58010
MC/DC50%1/2
$ENV{'TEST_FORCE_COLUMN_SIZE'} || eval { do { &use_module('Term::Size::Any'); [Term::Size::Any::chars()]->[0] } } || 80
$ENV{"TEST_FORCE_COLUMN_SIZE"} eval { do { &use_module("Term::Size::Any"); [Term::Size::Any::chars()]->[0] } }
Truth table66%2/3
A or B
A= $ENV{"TEST_FORCE_COLUMN_SIZE"}B= eval { do { &use_module("Term::Size::Any"); [Term::Size::Any::chars()]->[0] } }
ABresult
1X1
011
000
176 10 use_module("Term::Size::Any");
177 0 [ Term::Size::Any::chars() ]->[0];
178 } || 80;
179  
180 68 return Text::LineFold->new( ColMax => $columns - 4 );
181 }
182  
183 =head2 option_help
184  
185 Return the help message for your options
186  
187 =cut
188  
189 10 ▶sub option_help {
Subroutine option_help: called CC=12 SCAR=25.1
Pod documented
190 10 my ($self) = @_;
191 my %options_data
192 10 ▶ = defined $self->{target} ? $self->{target}->_options_data : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 10 0 10
193 my %options_config
194 = defined $self->{target}
195 ? $self->{target}->_options_config
196 10 ▶ : ( spacer => " " );
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 10 0 10
197 10 my $getopt_options = $self->options;
198 10 my @message;
199 10 my $lf = _get_line_fold();
200 10 for my $opt (@$getopt_options) {
201 64 ▶ if ( $opt->{desc} eq 'spacer' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt->{"desc"} eq "spacer") 12 52 64
202 push @message,
203 12 $options_config{spacer} x ( $lf->config('ColMax') - 4 );
204 12 push @message, "";
205 12 next;
206 }
207 52 my ( $short, $format ) = $opt->{spec} =~ /(?:\|(\w))?(?:=(.*?))?$/x;
208 52 my $format_doc_str;
209 52 ▶ $format_doc_str = $self->format_doc->{$format} if defined $format;
Branch: 1 branch
BranchTrueFalseTotal
if defined $format 3 49 52
210 $format_doc_str = 'JSON'
211 52 ▶ if defined $options_data{ $opt->{name} }{json};
Branch: 1 branch
BranchTrueFalseTotal
if defined $options_data{$opt->{"name"}}{"json"} 2 50 52
212 push @message,
213 ( defined $short ? "-" . $short . " " : "" ) . "-"
214 . ( length( $opt->{name} ) > 1 ? "-" : "" )
215 52 ▶ . $opt->{name} . ":"
Branch: 3 branches
BranchTrueFalseTotal
defined $short ? : 0 52 52
length $opt->{'name'} > 1 ? : 32 20 52
defined $format_doc_str ? : 3 49 52
216 . ( defined $format_doc_str ? " " . $format_doc_str : "" );
217  
218 52 my $opt_data = $options_data{ $opt->{name} };
219 52 ▶ $opt_data = {} if !defined $opt_data;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $opt_data 0 52 52
220 push @message,
221 $lf->fold(
222 " ",
223 " ",
224 defined $opt_data->{long_doc}
225 ? $self->__( $opt_data->{long_doc} )
226 : $self->__( $opt->{desc} )
227 52 ▶ );
Branch: 1 branch
BranchTrueFalseTotal
defined $opt_data->{'long_doc'} ? : 0 52 52
228 }
229  
230 10 return join( "\n",
231 $self->leader_text, join( "\n ", "", @message ),
232 $self->sub_commands_text );
233 }
234  
235 =head2 option_pod
236  
237 Return the usage message in pod format
238  
239 =cut
240  
241 3 ▶sub option_pod {
Subroutine option_pod: called CC=25 SCAR=41.0
Pod documented
242 3 my ($self) = @_;
243  
244 my %options_data
245 3 ▶ = defined $self->{target} ? $self->{target}->_options_data : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 3 0 3
246 my %options_config
247 = defined $self->{target}
248 ? $self->{target}->_options_config
249 3 ▶ : ( spacer => " " );
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 3 0 3
250  
251 3 my $prog_name = $self->{prog_name};
252 3 ▶ $prog_name = Getopt::Long::Descriptive::prog_name if !defined $prog_name;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $prog_name 0 3 3
253  
254 3 my $sub_commands = [];
255 3 ▶ if (defined $self->{target}
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)) 0 3 3
Condition33%1/3
defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
!ll&&!rl&&r
030
MC/DC0%0/2
defined $self->{"target"} and defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
defined $self->{"target"} defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
Truth table33%1/3
A and B
A= defined $self->{"target"}B= defined(my $sub_commands_options = $self->{"target"}->_options_sub_commands)
ABresult
0X0
100
111
256 && defined(
257 my $sub_commands_options
258 = $self->{target}->_options_sub_commands()
259 )
260 )
261 {
262 0 $sub_commands = $sub_commands_options;
263 }
264  
265 3 my @man = ( "=encoding UTF-8", "=head1 NAME", $prog_name, );
266  
267 3 ▶ if ( defined( my $description = $options_config{description} ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $description = $options_config{"description"})) 0 3 3
268 0 push @man, "=head1 DESCRIPTION", $description;
269 }
270  
271 3 push @man,
272 (
273 "=head1 SYNOPSIS",
274 $prog_name . " [-h] [" . $self->__("long options ...") . "]"
275 );
276  
277 3 ▶ if ( defined( my $synopsis = $options_config{synopsis} ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $synopsis = $options_config{"synopsis"})) 0 3 3
278 0 push @man, $synopsis;
279 }
280  
281 3 push @man, ( "=head1 OPTIONS", "=over" );
282  
283 3 my $spacer_escape = "E<" . ord( $options_config{spacer} ) . ">";
284 3 for my $opt ( @{ $self->options } ) {
285 18 ▶ if ( $opt->{desc} eq 'spacer' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt->{"desc"} eq "spacer") 3 15 18
286 3 push @man, "=back";
287 3 push @man, $spacer_escape x 40;
288 3 push @man, "=over";
289 3 next;
290 }
291 15 my ( $short, $format ) = $opt->{spec} =~ /(?:\|(\w))?(?:=(.*?))?$/x;
292 15 my $format_doc_str;
293 15 ▶ $format_doc_str = $self->format_doc_long->{$format}
Branch: 1 branch
BranchTrueFalseTotal
if defined $format 3 12 15
294 if defined $format;
295 $format_doc_str = 'JSON'
296 15 ▶ if defined $options_data{ $opt->{name} }{json};
Branch: 1 branch
BranchTrueFalseTotal
if defined $options_data{$opt->{"name"}}{"json"} 2 13 15
297  
298 my $opt_long_name
299 15 ▶ = "-" . ( length( $opt->{name} ) > 1 ? "-" : "" ) . $opt->{name};
Branch: 1 branch
BranchTrueFalseTotal
length $opt->{'name'} > 1 ? : 10 5 15
300 15 ▶ my $opt_name
Branch: 2 branches
BranchTrueFalseTotal
defined $short ? : 0 15 15
defined $format_doc_str ? : 3 12 15
301 = ( defined $short ? "-" . $short . " " : "" )
302 . $opt_long_name . ":"
303 . ( defined $format_doc_str ? " " . $format_doc_str : "" );
304  
305 15 push @man, "=item B<" . $opt_name . ">";
306  
307 15 my $opt_data = $options_data{ $opt->{name} };
308 15 ▶ $opt_data = {} if !defined $opt_data;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $opt_data 0 15 15
309 push @man, defined $opt_data->{long_doc}
310 ? $opt_data->{long_doc}
311 15 ▶ : $opt->{desc};
Branch: 1 branch
BranchTrueFalseTotal
defined $opt_data->{'long_doc'} ? : 0 15 15
312 }
313 3 push @man, "=back";
314  
315 3 ▶ if (@$sub_commands) {
Branch: 1 branch
BranchTrueFalseTotal
if (@$sub_commands) 0 3 3
316 0 push @man, "=head1 AVAILABLE SUB COMMANDS";
317 0 push @man, "=over";
318 0 for my $sub_command (@$sub_commands) {
319 0 ▶ if ($sub_command->{command}->can("_options_config")
Branch: 1 branch
BranchTrueFalseTotal
if ($sub_command->{'command'}->can('_options_config') and defined(my $desc = {$sub_command->{'command'}->_options_config}->{'description'})) { } 0 0 0
Condition0%0/3
$sub_command->{"command"}->can("_options_config") and defined(my $desc = {$sub_command->{"command"}->_options_config}->{"description"})
!ll&&!rl&&r
000
MC/DC0%0/2
$sub_command->{"command"}->can("_options_config") and defined(my $desc = {$sub_command->{"command"}->_options_config}->{"description"})
$sub_command->{"command"}->can("_options_config") defined(my $desc = {$sub_command->{"command"}->_options_config}->{"description"})
Truth table0%0/3
A and B
A= $sub_command->{"command"}->can("_options_config")B= defined(my $desc = {$sub_command->{"command"}->_options_config}->{"description"})
ABresult
0X0
100
111
320 && defined(
321 my $desc
322 = { $sub_command->{command}->_options_config }
323 ->{description}
324 )
325 )
326 {
327 0 push @man, "=item B<" . $sub_command->{name} . "> : " . $desc;
328 }
329 else {
330 0 push @man, "=item B<" . $sub_command->{name} . "> :";
331 }
332  
333 push @man,
334 $prog_name . " "
335 . $sub_command->{name}
336 0 . " [-h] ["
337 . $self->__("long options ...") . "]";
338 }
339 0 push @man, "=back";
340 }
341  
342 3 ▶ if ( defined( my $authors = $options_config{authors} ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $authors = $options_config{"authors"})) 3 0 3
343 3 ▶ if ( !ref $authors && length($authors) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (not ref $authors and length $authors) 0 3 3
Condition33%1/3
not ref $authors and length $authors
!ll&&!rl&&r
300
MC/DC0%0/2
not ref $authors and length $authors
not ref $authors length $authors
Truth table33%1/3
not(A) and B
A= not ref $authorsB= length $authors
ABresult
0X0
100
111
344 0 $authors = [$authors];
345 }
346 3 ▶ if (@$authors) {
Branch: 1 branch
BranchTrueFalseTotal
if (@$authors) 0 3 3
347 0 push @man, ( "=head1 AUTHORS", "=over" );
348 0 push @man, map { "=item B<" . $_ . ">" } @$authors;
349 0 push @man, "=back";
350 }
351 }
352  
353 3 return join( "\n\n", @man );
354 }
355  
356 =head2 option_short_usage
357  
358 All options message without help
359  
360 =cut
361  
362 2 ▶sub option_short_usage {
Subroutine option_short_usage: called CC=10 SCAR=23.1
Pod documented
363 2 my ($self) = @_;
364 my %options_data
365 2 ▶ = defined $self->{target} ? $self->{target}->_options_data : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'target'} ? : 2 0 2
366 2 my $getopt_options = $self->options;
367  
368 2 my $prog_name = $self->{prog_name};
369 2 ▶ $prog_name = Getopt::Long::Descriptive::prog_name if !defined $prog_name;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $prog_name 0 2 2
370  
371 2 my @message;
372 2 for my $opt (@$getopt_options) {
373 14 ▶ if ( $opt->{desc} eq 'spacer' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt->{"desc"} eq "spacer") 2 12 14
374 2 push @message, '';
375 2 next;
376 }
377 12 my ($format) = $opt->{spec} =~ /(?:\|\w)?(?:=(.*?))?$/x;
378 12 my $format_doc_str;
379 12 ▶ $format_doc_str = $self->format_doc->{$format} if defined $format;
Branch: 1 branch
BranchTrueFalseTotal
if defined $format 4 8 12
380 $format_doc_str = 'JSON'
381 12 ▶ if defined $options_data{ $opt->{name} }{json};
Branch: 1 branch
BranchTrueFalseTotal
if defined $options_data{$opt->{"name"}}{"json"} 0 12 12
382 push @message,
383 "-"
384 . ( length( $opt->{name} ) > 1 ? "-" : "" )
385 . $opt->{name}
386 12 ▶ . ( defined $format_doc_str ? "=" . $format_doc_str : "" );
Branch: 2 branches
BranchTrueFalseTotal
length $opt->{'name'} > 1 ? : 10 2 12
defined $format_doc_str ? : 4 8 12
387 }
388 return
389 2 ▶ join( " ", $prog_name, map { $_ eq '' ? " | " : "[ $_ ]" } @message );
Branch: 1 branch
BranchTrueFalseTotal
$_ eq '' ? : 2 12 14
390 }
391  
392 =head2 warn
393  
394 Warn your options help message
395  
396 =cut
397  
398 0 ▶sub warn { return CORE::warn shift->text }
Subroutine warn: not called CC=1 SCAR=6.9
Pod documented
399  
400 =head2 die
401  
402 Croak your options help message
403  
404 =cut
405  
406 10 ▶sub die {
Subroutine die: called CC=1 SCAR=0.0
Pod documented
407 10 my ($self) = @_;
408 10 $self->{should_die} = 1;
409 10 return;
410 }
411  
412 23 ▶use overload (
Subroutine BEGIN: called CC=1 SCAR=2.2
413 q{""} => "text",
414 0 ▶ '&{}' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
415 return
416 0 ▶ sub { my ($self) = @_; return $self ? $self->text : $self->warn; };
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$self ? : 0 0 0
417 }
418 23 );
419  
420 =head1 SUPPORT
421  
422 You can find documentation for this module with the perldoc command.
423  
424 perldoc MooX::Options
425  
426 You can also look for information at:
427  
428 =over 4
429  
430 =item * RT: CPAN's request tracker (report bugs here)
431  
432 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Options>
433  
434 =item * AnnoCPAN: Annotated CPAN documentation
435  
436 L<http://annocpan.org/dist/MooX-Options>
437  
438 =item * CPAN Ratings
439  
440 L<http://cpanratings.perl.org/d/MooX-Options>
441  
442 =item * Search CPAN
443  
444 L<http://search.cpan.org/dist/MooX-Options/>
445  
446 =back
447  
448 =head1 AUTHOR
449  
450 celogeek <me@celogeek.com>
451  
452 =head1 COPYRIGHT AND LICENSE
453  
454 This software is copyright (c) 2013 by celogeek <me@celogeek.com>.
455  
456 This software is copyright (c) 2017 by Jens Rehsack.
457  
458 This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
459  
460 =cut
461  
462 23 1;
↑ Summary blib/lib/MooX/Options/Role.pm »