MooseX...Getopt(3pm)

πŸ“¦
version 0.10 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ NAME ✨

MooseX::Runnable::Invocation::Scheme::MooseX::Getopt β€” bestie, this is the lil scheme that runs MX::Getopt classes πŸ’–

(yes it's a Perl module, yes it lives in the User Contributed Perl Documentation section, and yes the name is a whole entire runway πŸ’…)


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: MooseX::Runnable::Invocation needs to make an instance of the class that's about to be run, and it wants that class running with MooseX::Getopt. That's literally the whole job of this role. It's the hype friend that gets the class dressed and on stage. πŸ‘‘

Then β€” and this is the part people sleep on β€” any args that MX::Getopt does not consume get handed straight off to the class's run method. So MX::Getopt takes what it wants, and the leftovers go to run. No cap, that's the flow. πŸ“

Wanna see it in the wild? There's a test for exactly this: t/basic-mx-getopt.t. Go look, it's giving example. πŸ™ˆ

🌸 SEE ALSO 🌸

  • MooseX::Runnable
  • MooseX::Getopt

mwah πŸ’‹ that's the whole page, go read the code, ily

perl v5.36.0 Β· 2022-12-11 β€” and that's the tea, dated and versioned and everything πŸŽ€πŸ«Άβœ¨

πŸ“¦ where this page comes from