1MooseX::Getopt::Meta::AUtsterribCMuootnoets:re:iXTb:ru:atGieetdt:o:PpNetor:Gl:eMtDeootpcatu:(m:3eA)ntttartiibounte::Trait::NoGetopt(3)
2
3
4
6 MooseX::Getopt::Meta::Attribute::Trait::NoGetopt - Optional meta
7 attribute trait for ignoring params
8
10 package App;
11 use Moose;
12
13 with 'MooseX::Getopt';
14
15 has 'data' => (
16 traits => [ 'NoGetopt' ], # do not attempt to capture this param
17 is => 'ro',
18 isa => 'Str',
19 default => 'file.dat',
20 );
21
23 This is a custom attribute metaclass trait which can be used to specify
24 that a specific attribute should not be processed by "MooseX::Getopt".
25 All you need to do is specify the "NoGetopt" metaclass trait.
26
27 has 'foo' => (traits => [ 'NoGetopt', ... ], ... );
28
30 meta
31
33 All complex software has bugs lurking in it, and this module is no
34 exception. If you find a bug please either email me, or add the bug to
35 cpan-RT.
36
38 Stevan Little <stevan@iinteractive.com>
39
41 Copyright 2007-2008 by Infinity Interactive, Inc.
42
43 <http://www.iinteractive.com>
44
45 This library is free software; you can redistribute it and/or modify it
46 under the same terms as Perl itself.
47
48
49
50perl v5.12.0 MooseX:2:0G1e0t-o0p3t-:0:1Meta::Attribute::Trait::NoGetopt(3)