App::C...d::Help(3pm)

πŸ“¦
version 0.313 Β· 6 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so this is the App::C...d::Help(3pm) page β€” User Contributed Perl Documentation, bestie. The actual module is App::CLI::Command::Help, and its whole thing is to output PODs of each command. iconic. πŸ’…

✨ SYNOPSIS ✨

package MyApp::Help;
use base qw(App::CLI::Command::Help);

sub run {
    my ($self, @args) = @_;
    # preprocess
    $self->SUPER(@_);       # App::CLI::Command::Help would output PODs of each command
}

πŸ¦‹ DESCRIPTION πŸ¦‹

Your command class should be capitalized. like, capital letter first, bestie, no cap. ✨

To add a help message, you just add pod in the command class:

package YourApp::Command::Foo;

=head1 NAME

YourApp::Command::Foo - execute foo

=head1 DESCRIPTION

blah blah

=head1 USAGE

....

=cut

and that's the whole vibe, bestie πŸ’– β€” this page is from perl v5.36.0, dated 2022-10-15, and it's App::C...d::Help(3pm). mwah 🫢✨

πŸ“¦ where this page comes from