2 package MooseX::Getopt::Meta::Attribute;
6 our $AUTHORITY = 'cpan:STEVAN';
8 extends 'Moose::Meta::Attribute'; # << Moose extending Moose :)
13 predicate => 'has_cmd_flag',
25 MooseX::Getopt::Meta::Attribute - Optional meta attribute for custom option names
32 with 'MooseX::Getopt';
35 metaclass => 'MooseX::Getopt::Meta::Attribute',
38 default => 'file.dat',
39 # tells MooseX::Getopt to use -f as the
40 # command line flag instead of the normal
41 # autogenerated one (--data)
47 This is a custom attribute metaclass which can be used to specify a
48 the specific command line flag to use instead of the default one
49 which L<MooseX::Getopt> will create for you.
51 This is certainly not the prettiest way to go about this, but for
52 now it works for those who might need such a feature.
56 These methods are of little use to most users, they are used interally
57 within L<MooseX::Getopt>.
71 All complex software has bugs lurking in it, and this module is no
72 exception. If you find a bug please either email me, or add the bug
77 Stevan Little E<lt>stevan@iinteractive.comE<gt>
79 =head1 COPYRIGHT AND LICENSE
81 Copyright 2007 by Infinity Interactive, Inc.
83 L<http://www.iinteractive.com>
85 This library is free software; you can redistribute it and/or modify
86 it under the same terms as Perl itself.