package App; use Mouse; with 'MouseX::Getopt'; has 'data' => ( metaclass => 'NoGetopt', # do not attempt to capture this param is => 'ro', isa => 'Str', default => 'file.dat', );
This is a custom attribute metaclass which can be used to specify that a specific attribute should not be processed by MouseX::Getopt. All you need to do is specify the NoGetopt metaclass.
MouseX::Getopt
NoGetopt
has 'foo' => (metaclass => 'NoGetopt', ... );
To install MouseX::Getopt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::Getopt
CPAN shell
perl -MCPAN -e shell install MouseX::Getopt
For more information on module installation, please visit the detailed CPAN module installation guide.