Excerpts from Elliot Shank's message of Wed Aug 19 21:26:43 -0700 2009:
> If you uncomment the one line in the code below, you get a "Illegal inherited
> options => (getopt_name)" error. Is there any way around this?
>
> has '+modified_attribute' => (
> traits => [ qw< MooseX::Getopt::Def
On Thu, Aug 20, 2009 at 12:53:17AM -0400, Chris Prather wrote:
> On Thu, Aug 20, 2009 at 12:26 AM, Elliot Shank wrote:
> > If you uncomment the one line in the code below, you get a "Illegal
> > inherited options => (getopt_name)" error. Is there any way around this?
>
> Yes, but it isn't pretty.
On Thu, Aug 20, 2009 at 12:26 AM, Elliot Shank wrote:
> If you uncomment the one line in the code below, you get a "Illegal
> inherited options => (getopt_name)" error. Is there any way around this?
Yes, but it isn't pretty. Moose::Meta::Attribute defines a set of
"legal_options_for_inheritance",
If you uncomment the one line in the code below, you get a "Illegal inherited options
=> (getopt_name)" error. Is there any way around this?
use Moose::Role;
has role_option => (
traits => [ qw< MooseX::Getopt::Defanged::Option > ],
is => 'rw',
isa => 'Str'