MooseX...sedArgv(3pm)

πŸ’– MooseX::Getopt::ProcessedArgv β€” wait bestie, the manual page is literally called MooseX...sedArgv(3pm) πŸ¦‹

okay so this is a Perl manual page (section 3pm, User Contributed Perl Documentation, iykyk) and it's about a lil class that holds the receipts from processing your command line. let's get into it πŸ’…


✨ NAME ✨

MooseX::Getopt::ProcessedArgv β€” yep, the name is literally MooseX::Getopt::ProcessedArgv - MooseX::Getopt::ProcessedArgv - Class containing the results of process_argv. it said its own name twice, iconic behaviour honestly πŸ‘‘


🌸 VERSION 🌸

version 0.78 β€” that's the vibe check result, bestie ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the little taste test, no cap:

use My::App;

my $pa = My::App->process_argv(@params);
my $argv_copy          = $pa->argv_copy();
my $extra_argv         = $pa->extra_argv();
my $usage              = $pa->usage();
my $constructor_params = $pa->constructor_params();
my $cli_params         = $pa->cli_params();

look at all those accessors just vibing 😌


πŸ’œ DESCRIPTION πŸ’œ

so this object is what you get back from a process_argv call in MooseX::Getopt. it's the lil treasure chest holding all the info that new_with_options in MooseX::Getopt uses when it calls new. that's it. that's the whole job. and it does it flawlessly, fr fr πŸ’–


🌈 METHODS 🌈

πŸ’… argv_copy

a reference to a copy of the original @ARGV array, exactly as it existed at the moment of new_with_options. like a screenshot of your argv before anything touched it πŸ“Έ

🧚 extra_arg

an arrayref of the leftover @ARGV elements that Getopt::Long did not parse. the stragglers. the ones who didn't get picked for the team πŸ₯²

⭐ usage

contains the Getopt::Long::Descriptive::Usage object β€” but only if Getopt::Long::Descriptive is being used. conditional queen πŸ’«

πŸ“ constructor_params

the parameters that were passed to process_argv. the origin story, basically πŸ“–

πŸ”₯ cli_param

the command-line parameters that got parsed out of @ARGV. the ones that did make it, periodt πŸ‘‘


🫢 SUPPORT 🫢

got bugs? bestie, we all do. you can submit them through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Getopt>, or slide into <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Getopt> … ok specifically the email <bug-MooseX-Getopt@rt.cpan.org> (that's bug-MooseX-Getopt@rt.cpan.org in mailto form, <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> πŸ“¬

and there's an irc channel too, for users of this distribution: #moose on irc.perl.org β€” that's <irc://irc.perl.org/#moose>. come say hi, we don't bite πŸ’¬


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan@iinteractive.com> β€” thank you for your service, king 🫑


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

it's free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go forth and remix, bestie πŸ’–


ngl the original header had the manual name MooseX...sedArgv(3pm) up top and User Contributed Perl Documentation chilling on the side β€” consider this your formal introduction to both πŸŽ€

and that's a wrap! this page came from perl v5.40.0, dated 2025-01-11, and the footer said MooseX...sedArgv(3pm) one more time on the way out, like a little goodbye kiss πŸ’‹ mwah. bye bestie, go parse some argv πŸ¦‹βœ¨

πŸ“¦ where this page comes from