line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::Getopt::Strict; |
2
|
|
|
|
|
|
|
# ABSTRACT: only make options for attributes with the Getopt metaclass |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.75'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
845
|
use Moose::Role; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
7
|
1
|
|
|
1
|
|
5885
|
use namespace::autoclean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'MooseX::Getopt'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
around '_compute_getopt_attrs' => sub { |
12
|
|
|
|
|
|
|
my $next = shift; |
13
|
|
|
|
|
|
|
my ( $class, @args ) = @_; |
14
|
|
|
|
|
|
|
grep { |
15
|
|
|
|
|
|
|
$_->does("MooseX::Getopt::Meta::Attribute::Trait") |
16
|
|
|
|
|
|
|
} $class->$next(@args); |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
MooseX::Getopt::Strict - only make options for attributes with the Getopt metaclass |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
version 0.75 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This is an stricter version of C<MooseX::Getopt> which only processes the |
38
|
|
|
|
|
|
|
attributes if they explicitly set as C<Getopt> attributes. All other attributes |
39
|
|
|
|
|
|
|
are ignored by the command line handler. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SUPPORT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Getopt> |
44
|
|
|
|
|
|
|
(or L<bug-MooseX-Getopt@rt.cpan.org|mailto:bug-MooseX-Getopt@rt.cpan.org>). |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
47
|
|
|
|
|
|
|
L<http://lists.perl.org/list/moose.html>. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
50
|
|
|
|
|
|
|
L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Stevan Little <stevan@iinteractive.com> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This software is copyright (c) 2007 by Infinity Interactive, Inc. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
61
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |