---
name: "MouseX::Getopt::Meta::Attribute::Trait::NoGetopt"
section: "3pm"
platform: "linux"
package: "libmousex-getopt-perl"
version: "0.38-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MouseX::Getopt::Meta::Attribute::Trait::NoGetopt"
---

# MouseX::Getopt::Meta::Attribute::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',
  );
```

## 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', ... ], ... );
```
