package MooseX::Getopt::Strict;
+
+our $VERSION = '0.150001';
+
use Moose::Role;
with 'MooseX::Getopt';
around '_compute_getopt_attrs' => sub {
my $next = shift;
- my ( $class, @args ) = @_;
- grep {
- $_->isa("MooseX::Getopt::Meta::Attribute")
+ my ($class, @args) = @_;
+
+ return grep {
+ $_->does('MooseX::Getopt::Meta::Attribute::Trait')
} $class->$next(@args);
};
+
1;
+
__END__
=pod
=head1 NAME
MooseX::Getopt::Strict - only make options for attrs with the Getopt metaclass
-
+
=head1 DESCRIPTION
-This is an stricter version of C<MooseX::Getopt> which only processes the
+This is an stricter version of C<MooseX::Getopt> which only processes the
attributes if they explicitly set as C<Getopt> attributes. All other attributes
are ignored by the command line handler.
-
+
=head1 METHODS
=over 4
=back
+=head1 SEE ALSO
+
+=over 4
+
+=item L<MooseX::Getopt>
+
+=back
+
=head1 BUGS
-All complex software has bugs lurking in it, and this module is no
+All complex software has bugs lurking in it, and this module is no
exception. If you find a bug please either email me, or add the bug
to cpan-RT.