
App::CLI::Command - Base class for App::CLI commands

package MyApp;
use base 'App::CLI';
package main;
MyApp->dispatch;
package MyApp::Help;
use base 'App::CLI::Command';
sub options {
('verbose' => 'verbose');
}
sub run {
my ($self, $arg) = @_;
}

Display an one-line brief usage of the command object. Optionally, a file could be given to extract the usage from the POD.
Display usage. If $want_detail is true, the DESCRIPTION section is displayed as well.
Localizes the body of (formatted) text in $text, and returns the localized version.
Return the filename for the command module.

More documentation


Chia-liang Kao <clkao@clkao.org>

Copyright 2005-2006 by Chia-liang Kao <clkao@clkao.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.