logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Description

       This is a custom attribute metaclass trait 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 trait.

         has 'foo' => (traits => [ 'NoGetopt', ... ], ... );

perl v5.40.0                                       2025-01-13             MouseX::Getopt:...Trait::NoGetopt(3pm)

Name Mousex::Getopt::Meta::Attribute::Trait::Nogetopt - Optional Meta Attribute Trait For Ignoring Params

Synopsis

         package App;
         use Mouse;

         with 'MouseX::Getopt';

         has 'data' => (
             traits  => [ 'NoGetopt' ],  # do not attempt to capture this param
             is      => 'ro',
             isa     => 'Str',
             default => 'file.dat',
         );