Query: app::cli::command
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
App::CLI::Command(3) User Contributed Perl Documentation App::CLI::Command(3)NAMEApp::CLI::Command - Base class for App::CLI commandsSYNOPSISpackage MyApp::List; use base qw(App::CLI::Command); use constant options => ( 'verbose' => 'verbose', 'n|name=s' => 'name', ); sub run { my ( $self, $arg ) = @_; print "verbose" if $self->{verbose}; my $name = $self->{name}; # get arg following long option --name # any thing your want this command do } # See App::CLI for information of how to invoke (sub)command.DESCRIPTIONsubcommand() return old genre subcommand of $self; cascading() return instance of cascading subcommand invoked if it was listed in your constant subcommands. cascadable() return package name of subcommand if the subcommand invoked is in you constant subcommands otherwise, return undef 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.SEE ALSOApp::CLI Getopt::LongAUTHORSChia-liang Kao <clkao@clkao.org> Cornelius Lin <cornelius.howl@gmail.com> shelling <navyblueshellingford@gmail.com>COPYRIGHTCopyright 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> perl v5.16.2 2010-12-02 App::CLI::Command(3)
Related Man Pages |
---|
io::digest(3) - mojave |
app::cli::command(3) - osx |
app::cli::command5.12(3) - osx |
app::cli(3pm) - debian |
app::cmd::setup(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Ubuntu 8.04 Alpha6 booting into busybox CLI |
Get a web page through CLI |
memory usage |
Command to see the status of managed node from CLI of HMC? |
Conversion program/command via CLI |