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