App-Cmd
view release on metacpan or search on metacpan
lib/App/Cmd/Command/help.pm view on Meta::CPAN
#pod Subcommand classes should override the C<discription> method to provide
#pod additional information that is prepended before the option descriptions.
#pod
#pod For example, consider the following subcommand module:
#pod
#pod package YourApp::Command::initialize;
#pod
#pod # This is the default from App::Cmd::Command
#pod sub usage_desc {
#pod my ($self) = @_;
#pod my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
#pod return "$desc [DIRECTORY]";
#pod }
#pod
#pod sub description {
#pod return "The initialize command prepares the application...";
#pod }
#pod
#pod sub opt_spec {
#pod return (
#pod [ "skip-refs|R", "skip reference checks during init", ],
lib/App/Cmd/Command/help.pm view on Meta::CPAN
Subcommand classes should override the C<discription> method to provide
additional information that is prepended before the option descriptions.
For example, consider the following subcommand module:
package YourApp::Command::initialize;
# This is the default from App::Cmd::Command
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [DIRECTORY]";
}
sub description {
return "The initialize command prepares the application...";
}
sub opt_spec {
return (
[ "skip-refs|R", "skip reference checks during init", ],
lib/App/Cmd/Subdispatch.pm view on Meta::CPAN
#pod exist.
#pod
#pod =cut
sub new {
my ($inv, $fields, @args) = @_;
if (ref $inv) {
@{ $inv }{ keys %$fields } = values %$fields;
return $inv;
} else {
$inv->SUPER::new($fields, @args);
}
}
#pod =method prepare
#pod
#pod my $subcmd = $subdispatch->prepare($app, @args);
#pod
#pod An overridden version of L<App::Cmd::Command/prepare> that performs a new
#pod dispatch cycle.
#pod
( run in 2.243 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )