App::CLI::Command5.12 man page on MacOSX

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
MacOSX logo
[printable version]

App::CLI::Command(3)  User Contributed Perl Documentation App::CLI::Command(3)

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

	   package 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.


	   return old genre subcommand of $self;


       return instance of cascading subcommand invoked if it was listed in
       your constant subcommands.


       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.


       Return the filename for the command module.

       App::CLI Getopt::Long

       Chia-liang Kao <> Cornelius Lin
       <> shelling

       Copyright 2005-2006 by Chia-liang Kao <>.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       See <>

perl v5.12.5			  2010-12-02		  App::CLI::Command(3)

List of man pages available for MacOSX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net