Scroll to navigation

MouseX::Getopt::Meta::Attribute::Trait::NoGetopt(3pm) User Contributed Perl Documentation MouseX::Getopt::Meta::Attribute::Trait::NoGetopt(3pm)

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',
  );

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', ... ], ... );
2021-03-27 perl v5.38.2