Getopt...thList(3pm)

πŸ“¦ version 2.000011, in ubuntu stonking

✨ 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 allowed
  • requires_autofill: true β€” and actually required, not optional, fr fr

So here's the tea on how those two play out β˜•:

  • --opt on 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 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