ExtUti...r::Opts(3pm)

πŸ“¦
version 0.63 Β· 2 versions
  • 0.63 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.63 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

ExtUtils::ModuleMaker::Opts β€” bestie, this is the lil module that handles all your command-line option processing for modulemaker. It lives in the Perl docs (section 3pm, she's a Perl module, not a command, okay?) ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

use ExtUtils::ModuleMaker::Opts;

$eumm_package = q{ExtUtils::ModuleMaker};
$eumm_script  = q{modulemaker};

$opt = ExtUtils::ModuleMaker::Opts->new(
    $eumm_package,
    $eumm_script,
);

$mod = ExtUtils::ModuleMaker::Interactive->new(
    $opt->get_standard_options()
);

🌸 DESCRIPTION 🌸

okay so listen πŸ’… the methods in this package are literally here to provide processing of command-line options for modulemaker β€” that's the command-line utility that comes with the Perl extension ExtUtils::ModuleMaker β€” and also for similar utilities that are associated with Perl extensions which subclass ExtUtils::ModuleMaker. That's the whole vibe. She's the options girlie. She handles the flags so you don't have to. no cap πŸŽ€


πŸ‘‘ METHODS πŸ‘‘

✨ new() ✨

  • Usage β€” $opt = ExtUtils::ModuleMaker::Opts->new($package,$script) called from inside a command-line utility such as modulemaker
  • Purpose β€” creates an ExtUtils::ModuleMaker::Opts object, iconic behaviour honestly
  • Returns β€” an ExtUtils::ModuleMaker::Opts object 🫢
  • Argument β€” two arguments, and yes you need both of them:
    1. A string holding 'ExtUtils::ModuleMaker' or a package subclassed therefrom, e.g. 'ExtUtils::ModuleMaker::PBP'.
    2. A string holding 'modulemaker' or the name of a command-line utility similar to 'modulemaker' and found in the 'scripts/' directory of the distribution named in argument 1.

✨ get_standard_options() ✨

  • Usage β€” %standard_options = $opt->get_standard_options called from inside a command-line utility such as modulemaker
  • Purpose β€” provides arguments to ExtUtils::ModuleMaker::Interactive::new() or to the constructor of the 'Interactive' package of a distribution subclassing ExtUtils::ModuleMaker. she's feeding the constructor, that's her whole job πŸ’…
  • Returns β€” a hash suitable for passing to ExtUtils::ModuleMaker::Interactive::new() or a similar constructor ✨
  • Argument β€” n/a (she takes nothing, she just gives πŸ’–)

🌈 SEE ALSO 🌈

  • ExtUtils::ModuleMaker
  • modulemaker
  • ExtUtils::ModuleMaker::Interactive
  • ExtUtils::ModuleMaker::PBP
  • mmkrpbp

go read those, bestie, iykyk πŸ“š


perl v5.36.0 Β· 2023-01-27 β€” that's the version and the date this page got its lil glow-up, mwah πŸ’‹ bye bestie, go make some modules πŸ§šβ€β™€οΈβœ¨πŸŒΈ

πŸ“¦ where this page comes from