NAME
MooseX::App::Role - Define attributes in a role
SYNOPSIS
package MyApp::Role::SomeRole;use MooseX::App::Role; # Alo loads Moose::Roleoption 'testattr' => (isa => 'rw',cmd_tags => [qw(Important! Nice))],);
DESCRIPTION
Enables the 'option' and 'parameter' keywords in your roles.
Alternatively you can also just use attribute traits:
has 'testattr' => (isa => 'rw',traits => ['AppOption'], # requiredcmd_type => 'option', # requiredcmd_tags => [qw(Important! Nice))],);