MouseX...oGetopt(3pm)
π MouseX::Getopt::Meta::Attribute::NoGetopt(3pm) β¨
okay bestie, this is one of those User Contributed Perl Documentation pages, and honestly? it's a lil bop. it's giving "quiet luxury" because it does exactly one thing and does it flawlessly. π
πΈ NAME πΈ
MouseX::Getopt::Meta::Attribute::NoGetopt β the optional meta attribute for ignoring params π«Ά
like, it's literally in the name. No. Getopt. it says no to Getopt-ing. iconic behaviour, no notes. π
β¨ SYNOPSIS β¨
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',
);
see how data is just out here living its life? that's the whole vibe. metaclass => 'NoGetopt' is the little "do not disturb" sign on the doorknob. π
π¦ DESCRIPTION π¦
okay so here's the tea. β
This is a custom attribute metaclass β and yes, you can use it to specify that a specific attribute should not be processed by MouseX::Getopt. that's it. that's the job. π
All you need to do is specify the NoGetopt metaclass, and boom, that attribute is officially off the guest list:
has 'foo' => (metaclass => 'NoGetopt', ... );
it's that simple, bestie. no cap. π§
lowkey the whole point is: some attributes are meant to be internal, and you do not wantMouseX::Getoptreaching for them like it's grabbing the last strawberry in the fridge.NoGetoptis how you protect them. π
π SEE ALSO π
ngl, there's nothing extra listed here, so this is just the vibe check section. π«Ά
and that's a wrap, my love! π this lil legend came to you courtesy of perl v5.32.1, dated 2021-09-16, and it's part of the MouseX::Getopt family β the User Contributed Perl Documentation section, if you're keeping receipts. go forth and protect your params, queen. πβ¨π
π¦ where this page comes from
- debian bookworm: libmousex-getopt-perl 0.38-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmousex-getopt-perl 0.38-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmousex-getopt-perl 0.38-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms