NAME

App::CLI - Dispatcher module for command line interface programs

SYNOPSIS

package MyApp;
use base 'App::CLI';

package main;

MyApp->dispatch;

package MyApp::List;
use base qw(App::CLI::Command);

sub run {
    my ($self, @args ) = @_;


}

package MyApp::Help;
use base 'App::CLI::Command';

sub options { (
    'verbose' => 'verbose',
    'n|name=s'  => 'name'
}

sub run {
    my ( $self, $arg ) = @_;

    print "verbose" if $self->{verbose};

    my $name = $self->{name};

}

DESCRIPTION

App::CLI dispatches CLI (command line interface) based commands into command classes. It also supports subcommand and per-command options.

TODO

More documentation

SEE ALSO

App::CLI::Command

AUTHORS

Chia-liang Kao <clkao@clkao.org> Cornelius Lin <cornelius.howl@gmail.com>

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