Getopt...thList(3pm)
β¨ NAME β¨
Getopt::Yath::Option::AutoPathList β it's giving Getopt::Yath::Option::PathList but with autofill, bestie π
(oh and btw this is a 3pm page, from the User Contributed Perl Documentation collection, perl v5.40.1 era, just so u know what u walked into π«Ά)
πΈ DESCRIPTION πΈ
Literally exactly what it says on the tin: it's like Getopt::Yath::Option::PathList, but with autofill. That's the whole vibe. Periodt. π
β¨ SYNOPSIS β¨
option dev_libs => (
type => 'AutoPathList',
short => 'D',
name => 'dev-lib',
autofill => sub { 'lib', 'blib/lib', 'blib/arch' },
description => 'find the local code instead of the installed versions of the same code. You can provide an argument (-Dfoo) to provide a custom path, or you can just use -D without and arg to add lib, blib/lib and blib/arch.',
long_examples => ['', '=lib', '="lib/*"'],
short_examples => ['', 'lib', '=lib', 'lib', '"lib/*"'],
);
π¦ METHODS π¦
Every single method from Getopt::Yath::Option::AutoList gets inherited β no notes, no exceptions, they all come thru π β and it also brings "normalize_value" from Getopt::Yath::Option::PathList along for the ride (that's the glob expansion one, iykyk β¨).
requires_arg:falseβ nope, doesn't need an arg, she's low maintenance πallows_autofill:trueβ yes, autofill is allowedrequires_autofill:trueβ and actually required, not optional, fr fr
So here's the tea on how those two play out β:
--opton its own β drops in the autofill paths. No argument needed, the autofill just appears. Main character energy π--opt=GLOBβ expands that glob and adds the matching paths.
π SOURCE π
The source code repository for Getopt-Yath is living at <http://github.com/Test-More/Getopt-Yath/> β go be nosy, bestie π«Ά
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
β AUTHORS β
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://dev.perl.org/licenses/>
okay that's the whole page π huge thanks to the User Contributed Perl Documentation girlies, this one's tagged perl v5.40.1, dated 2026-05-10, and filed under Getopt...thList(3pm) β slay, go forth and autofill your paths π¦β¨π
π¦ where this page comes from
- ubuntu stonking: libgetopt-yath-perl 2.000011-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