MooseX...Getopt(3pm)

πŸ’… MooseX...Getopt(3pm) β€” aka the tea on MooseX::Getopt::Meta::Attribute::Trait::NoGetopt

okay bestie, welcome to the manual page for MooseX::Getopt::Meta::Attribute::Trait::NoGetopt (yes it's a mouthful, yes it's iconic, we move) ✨


🌸 NAME 🌸

MooseX::Getopt::Meta::Attribute::Trait::NoGetopt β€” the optional meta attribute trait that tells the command line to mind its own business and ignore a parameter. periodt.


⭐ VERSION ⭐

version 0.78 πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

package App;
use Moose;

with 'MooseX::Getopt';

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

like. look at her. flawless. πŸ’…


✨ DESCRIPTION ✨

so here's the vibe: this is a custom attribute metaclass trait, and what it does is let you say "hey, this specific attribute? do NOT let MooseX::Getopt touch it." that's it. that's the whole job. and she does it beautifully. 🫢

all you gotta do is slap the NoGetopt metaclass trait on there:

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

and boom πŸ’₯ that attribute is off the menu for command-line parsing. no cap.


πŸŽ€ SUPPORT πŸŽ€

found a bug? bestie, we wanna hear it. bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Getopt> β€” or fr fr just email it to bug-MooseX-Getopt@rt.cpan.org <mailto:bug-MooseX-Getopt@rt.cpan.org>. πŸ™ˆ

there's also a mailing list for users of this distribution, hanging out at <http://lists.perl.org/list/moose.html>. come thru πŸ’Œ

and if you wanna chat live, there's an irc channel for users of this distribution too β€” #moose on irc.perl.org <irc://irc.perl.org/#moose>. the group chat is open, pull up 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan@iinteractive.com>

(an absolute legend, main character energy, we stan ⭐)


this software is copyright (c) 2007 by Infinity Interactive, Inc.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

read that again. free. free free. go wild, no gatekeeping 🧚

and that's the whole page bestie!! πŸ’œ this was pulled from perl v5.40.0, dated 2025-01-11, filed under MooseX...Getopt(3pm) β€” mwah, take care of her, bye!! πŸ“πŸŒΈβœ¨

πŸ“¦ where this page comes from