2 package MooseX::Getopt::Parser;
5 requires 'build_options';
15 MooseX::Getopt::Parser - A Moose role for MooseX::Getopt's parser
19 package MooseX::Getopt::Parser::Descriptive;
21 with 'MooseX::Getopt::Parser';
24 my ($getopt, @attrs) = @_;
25 Moose->throw_error('First argument is not a MooseX::Getopt::Session')
26 unless $getopt->isa('MooseX::Getopt::Session');
37 This is a L<Moose> role for L<MooseX::Getopt>'s parser. The parser have
38 to implement C<build_options> method which takes a
39 L<MooseX::Getopt::Session> object and attributes list which will be
44 All complex software has bugs lurking in it, and this module is no
45 exception. If you find a bug please either email me, or add the bug
52 =item L<MooseX::Getopt>
54 =item L<MooseX::Getopt::Parser::Long>
56 =item L<MooseX::Getopt::Parser::Descriptive>
58 =item L<MooseX::Getopt::Parser::Default>
64 Piotr Roszatycki, E<lt>dexter@cpan.orgE<gt>
66 =head1 COPYRIGHT AND LICENSE
68 Copyright 2007-2008 by Infinity Interactive, Inc.
70 L<http://www.iinteractive.com>
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself.