MooseX::Getopt::Explicit - MooseX::Getopt, but without implicit option generation [DEPRECATED]
version 0.03
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.
traits => ['Getopt']
MooseX::Getopt
MooseX::Getopt::Strict - when using this, give attributes a Getopt metaclass if you want it to get a command-line option.
Getopt
Rob Hoelz <rob@hoelz.ro>
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.
To install MooseX::Getopt::Explicit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Getopt::Explicit
CPAN shell
perl -MCPAN -e shell install MooseX::Getopt::Explicit
For more information on module installation, please visit the detailed CPAN module installation guide.