in reply to How to specify MooseX::Getopt::GLD components?
There is a FIXME note in the source
which lead me to try$opt->{doc} || ' ', # FIXME new GLD shouldn't need this hack
but that doesn't work (Found unknown argument(s) passed to 'in' attribute constructor in 'Moose::Meta::Attribute': doc)#!/usr/bin/perl -- BEGIN { package My::App; BEGIN { $INC{'My/App.pm'} = __FILE__; } use Moose; with 'MooseX::Getopt::GLD'; has 'out' => (is => 'rw', isa => 'Str', required => 1, doc => "yo" +, ); has 'in' => (is => 'rw', isa => 'Str', required => 1, doc => "yo +ho", ); } #!/usr/bin/perl -- use My::App; my $app = My::App->new_with_options();
Related bug #47865: Help and usage don't seem to work with Getopt::Long::Descriptive
|
|---|