Chia-liang Kao (高嘉良) > App-CLI-0.09 > App::CLI::Command

Download:
App-CLI-0.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  2
View/Report Bugs
Source   Latest Release: App-CLI-0.313

NAME ^

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

SYNOPSIS ^

  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) = @_;
  }

DESCRIPTION ^

brief_usage ($file)

Display an one-line brief usage of the command object. Optionally, a file could be given to extract the usage from the POD.

usage ($want_detail)

Display usage. If $want_detail is true, the DESCRIPTION section is displayed as well.

loc_text $text

Localizes the body of (formatted) text in $text, and returns the localized version.

filename

Return the filename for the command module.

TODO ^

More documentation

SEE ALSO ^

App::CLI

AUTHORS ^

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT ^

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.

See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: