Bump versions
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Meta / Attribute / Trait / NoGetopt.pm
CommitLineData
adbe3e57 1
2package MooseX::Getopt::Meta::Attribute::Trait::NoGetopt;
3use Moose::Role;
4
5f905015 5our $VERSION = '0.25';
adbe3e57 6our $AUTHORITY = 'cpan:STEVAN';
7
8no Moose::Role;
9
10# register this as a metaclass alias ...
11package # stop confusing PAUSE
12 Moose::Meta::Attribute::Custom::Trait::NoGetopt;
13sub register_implementation { 'MooseX::Getopt::Meta::Attribute::Trait::NoGetopt' }
14
151;
16
17__END__
18
19=pod
20
21=head1 NAME
22
23MooseX::Getopt::Meta::Attribute::Trait::NoGetopt - Optional meta attribute trait for ignoring params
24
25=head1 SYNOPSIS
26
27 package App;
28 use Moose;
29
30 with 'MooseX::Getopt';
31
32 has 'data' => (
33 traits => [ 'NoGetopt' ], # do not attempt to capture this param
34 is => 'ro',
35 isa => 'Str',
36 default => 'file.dat',
37 );
38
39=head1 DESCRIPTION
40
41This is a custom attribute metaclass trait which can be used to
42specify that a specific attribute should B<not> be processed by
43C<MooseX::Getopt>. All you need to do is specify the C<NoGetopt>
44metaclass trait.
45
46 has 'foo' => (traits => [ 'NoGetopt', ... ], ... );
47
48=head1 METHODS
49
50=over 4
51
52=item B<meta>
53
54=back
55
56=head1 BUGS
57
58All complex software has bugs lurking in it, and this module is no
59exception. If you find a bug please either email me, or add the bug
60to cpan-RT.
61
62=head1 AUTHOR
63
64Stevan Little E<lt>stevan@iinteractive.comE<gt>
65
66=head1 COPYRIGHT AND LICENSE
67
68Copyright 2007-2008 by Infinity Interactive, Inc.
69
70L<http://www.iinteractive.com>
71
72This library is free software; you can redistribute it and/or modify
73it under the same terms as Perl itself.
74
75=cut