X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=lib%2FMooseX%2FGetopt%2FMeta%2FNoGetopt.pm;h=d0d859d0204e33fe17da32ae8e91b44bdfce64c8;hp=c7c1d995b7d4124e1c8d0ad2c46959902d92af98;hb=f969917f5cb650391a698751da4a219bec2fcdec;hpb=edfb736cb47388616f04aef731cb0cd047bcaa91 diff --git a/lib/MooseX/Getopt/Meta/NoGetopt.pm b/lib/MooseX/Getopt/Meta/NoGetopt.pm index c7c1d99..d0d859d 100644 --- a/lib/MooseX/Getopt/Meta/NoGetopt.pm +++ b/lib/MooseX/Getopt/Meta/NoGetopt.pm @@ -14,4 +14,66 @@ no Moose; package Moose::Meta::Attribute::Custom::NoGetopt; sub register_implementation { 'MooseX::Getopt::Meta::NoGetopt' } -1; \ No newline at end of file +1; + +__END__ + +=pod + +=head1 NAME + +MooseX::NoGetopt::Meta::Attribute - Optional meta attribute for custom option names + +=head1 SYNOPSIS + + package App; + use Moose; + + with 'MooseX::Getopt'; + + has 'data' => ( + metaclass => 'NoGetOpt', # do not attempt to capture this param + is => 'ro', + isa => 'Str', + default => 'file.dat', + ); + +=head1 DESCRIPTION + +This is a custom attribute metaclass which can be used to specify +that a specific attribute should B be processed by +C. All you need to do is specify the C +metaclass. + + has 'foo' => (metaclass => 'NoGetopt', ... ); + +=head1 METHODS + +=over 4 + +=item B + +=back + +=head1 BUGS + +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. + +=head1 AUTHOR + +Stevan Little Estevan@iinteractive.comE + +Chris Prather C<< >> + +=head1 COPYRIGHT AND LICENSE + +Copyright 2007 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut