NAME

MOP4Import::Base::CLI - Boilerplate base class for Runnable Module

SYNOPSIS

#!/usr/bin/env perl
package MyScript;
use MOP4Import::Base::CLI -as_base;
...
__PACKAGE__->run(\@ARGV) unless caller;
1;

DESCRIPTION

Now superceded by MOP4Import::Base::CLI_JSON.

MOP4Import::Base::CLI is a general purpose base class to make your module also runnable from CLI easily. It helps you writing modules with small testable pieces codes.

It provides enough useful default implementation of run() method for CLI invocation.

Also, this module is implemented using MOP4Import so that you can implement your own import() pragmas.

SEE ALSO

App::Cmd - if your main goal is writing full-fleged CLI.

AUTHOR

Kobayashi, Hiroaki <hkoba@cpan.org>

LICENSE

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