1 package MooseX::Getopt::Dashes;
6 around _get_cmd_flags_for_attr => sub {
8 my ( $class, $attr, @rest ) = @_;
10 my ( $flag, @aliases ) = $class->$next($attr, @rest);
12 unless $attr->does('MooseX::Getopt::Meta::Attribute::Trait')
13 && $attr->has_cmd_flag;
15 return ( $flag, @aliases );
26 MooseX::Getopt::Dashes - convert underscores in attribute names to dashes
32 with 'MooseX::Getopt::Dashes';
34 # use as MooseX::Getopt
38 This is a version of C<MooseX::Getopt> which converts underscores in
39 attribute names to dashes when generating command line flags.
51 All complex software has bugs lurking in it, and this module is no
52 exception. If you find a bug please either email me, or add the bug
57 Dagfinn Ilmari MannsE<aring>ker E<lt>ilmari@ilmari.orgE<gt>
59 Stevan Little E<lt>stevan@iinteractive.comE<gt>
61 Yuval Kogman C<< <nuffin@cpan.org> >>
63 =head1 COPYRIGHT AND LICENSE
65 Copyright 2007-2008 by Infinity Interactive, Inc.
67 L<http://www.iinteractive.com>
69 This library is free software; you can redistribute it and/or modify
70 it under the same terms as Perl itself.