MooseX::Getopt::Explicit - MooseX::Getopt, but without implicit option generation [DEPRECATED]
use Moose; with 'MooseX::Getopt::Explicit'; has foo => ( is => 'rw', ); # Does *not* cause a Getopt option to be generated! has bar => ( is => 'ro' isa => 'Str', traits => ['Getopt'], ); # *Does* cause a Getopt option to be generated!
NOTE I didn't know about MooseX::Getopt::Strict when I wrote this; use that instead!
MooseX::Getopt is nice, but I don't care for how it creates a command line option for every attribute in my classes unless explicitly overridden. So this role does the opposite: it requires
traits => ['Getopt'] in order for a command line option to be generated.
MooseX::Getopt::Strict - when using this, give attributes a
Getopt metaclass if you want it to get a command-line option.
Rob Hoelz <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Rob Hoelz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/moosex-getopt-explicit/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.