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 π
π COPYRIGHT AND LICENSE π
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
- fedora 44: perl-App-Cmd 0.338-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms