1App::CLI::Command(3) User Contributed Perl Documentation App::CLI::Command(3)
2
3
4
6 App::CLI::Command - Base class for App::CLI commands
7
9 package MyApp;
10 use base 'App::CLI';
11
12 package main;
13
14 MyApp->dispatch;
15
16 package MyApp::Help;
17 use base 'App::CLI::Command';
18
19 sub options {
20 ('verbose' => 'verbose');
21 }
22
23 sub run {
24 my ($self, $arg) = @_;
25 }
26
28 brief_usage ($file)
29
30 Display an one-line brief usage of the command object. Optionally, a
31 file could be given to extract the usage from the POD.
32
33 usage ($want_detail)
34
35 Display usage. If $want_detail is true, the "DESCRIPTION" section is
36 displayed as well.
37
38 loc_text $text
39
40 Localizes the body of (formatted) text in $text, and returns the localā
41 ized version.
42
43 filename
44
45 Return the filename for the command module.
46
48 More documentation
49
51 App::CLI
52
54 Chia-liang Kao <clkao@clkao.org>
55
57 Copyright 2005-2006 by Chia-liang Kao <clkao@clkao.org>.
58
59 This program is free software; you can redistribute it and/or modify it
60 under the same terms as Perl itself.
61
62 See <http://www.perl.com/perl/misc/Artistic.html>
63
64
65
66perl v5.8.8 2006-11-24 App::CLI::Command(3)