Getopt...toList(3pm)
π NAME π
Getopt::Yath::Option::AutoList β bestie, it's options that come with a whole default list of values, no cap β¨
πΈ DESCRIPTION πΈ
Okay so picture this: it's a glow-up collab between the 'Auto' type and the 'List' type, and the result is genuinely iconic π₯
- Hit it with the no-arg form, just plain
--opt, and it takes the default value(s) and drops them straight into the list. Automatic. Effortless. We stan π«Ά - Want something specific? Use the
--opt=VALform and it adds additional values on top. Mix and match, it's giving versatility π
so basically: no args = the defaults show up, args = your args show up too. both. at once. iconic.
π SYNOPSIS π
option do_things => (
type => 'AutoList',
autofill => sub { qw/foo bar baz/ },
);
β¨ METHODS β¨
Every single method from Getopt::Yath::Option::List is inherited β the whole family tree came to the party, it's a reunion π The ones below are either overridden or just extra noteworthy:
requires_arg: falseallows_autofill: truerequires_autofill: true
And here's what that trio is actually saying, bestie:
--optadds the autofill value(s) to the list π--opt=VALadds one specific value π―
lowkey that's the whole vibe: bare flag = autofill defaults, flag with a value = your exact value. both roads lead to the list. π
π SOURCE π
The source code repository for Getopt-Yath can be found at <http://github.com/Test-More/Getopt-Yath/> β go lurk, it's free π
π 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/>
manifesting your option parser works on the first try ππ
kisses, this was perl v5.40.1, dated 2026-05-10 β Getopt...toList(3pm), and yes she served π
π¦ 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