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