App::Cm...edStyle(3)

πŸ’– App::Cmd::Subdispatch::DashedStyle πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation and it's all about App::Cmd::Subdispatch::DashedStyle β€” the module that does "app cmd --subcmd" style subdispatching. yes that's the whole vibe. dashes. subcommands. iconic. ✨


🌸 VERSION 🌸

version 0.338 β€” that's the one, no cap 🫢


πŸ¦‹ PERL VERSION πŸ¦‹

so like, this library should run on perls released even a long time ago. literally. it should work on any version of perl released in the last five years. periodt πŸ’…

okay but hear me out β€” although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so don't come for me. 😭

✨ METHODS ✨

πŸŽ€ get_command

my ($subcommand, $opt, $args) = $subdispatch->get_command(@args)

this is a version of get_command that chooses commands as options, and the style it's serving is this exact one:

mytool mycommand --mysubcommand

like, the subcommand is the option. the way that works is lowkey genius, iykyk πŸ”₯

πŸŽ€ opt_spec

a version of "opt_spec" that calculates the getopt specification from the subcommands. it just... derives the spec for you. obsessed. πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Ricardo Signes <cpan@semiotic.systems> β€” main character energy fr fr 🌈


This software is copyright (c) 2025 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay πŸ“


aaaand that's the whole page bestie! this was perl v5.42.0 energy, dated 2026-01-16, and the manual page is App::Cm...edStyle(3) πŸ’…βœ¨ bye ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from