#!/usr/bin/env perl

# @(#)$Id: munchies_cli 790 2009-06-30 02:51:12Z pjf $

use strict;
use warnings;
use version; our $VERSION = qv( sprintf '0.4.%d', q$Rev: 790 $ =~ /\d+/gmx );
use File::Spec::Functions;
use FindBin  qw( $Bin );
use lib catfile( $Bin, updir, q(lib) );

use App::Munchies::CLI;

exit App::Munchies::CLI->new( appclass => q(App::Munchies) )->dispatch;

__END__

=pod

=head1 NAME

munchies_cli - A command line interface to application subroutines

=head1 SYNOPSIS

=over 3

=item B<munchies_cli> B<-c> I<subroutine> [B<-o> I<var=value,...>]

Execute named subroutine

=item B<munchies_cli> B<-H>|B<-h>

Display man page/usage string

=back

=head1 VERSION

0.4.$Rev: 790 $

=head1 DESCRIPTION

This program exposes the subroutines in the L<App::Munchies::CLI> module

=head1 REQUIRED ARGUMENTS

=over 3

=item B<-c> I<subroutine>

=back

=head1 OPTIONS

=over 3

=item B<-D>

Turn debugging on

=item B<-m> I<path>

Append to logfile on completion

=item B<-n>

Do not prompt for debugging

=back

=head1 DIAGNOSTICS

Prints errors to stderr

=head1 EXIT STATUS

Returns zero on success, non zero on failure

=head1 CONFIGURATION

Uses the constructor's I<appclass> attribute to locate a configuration file

=head1 DEPENDENCIES

=over 3

=item L<App::Munchies::CLI>

=back

=head1 INCOMPATIBILITIES

None

=head1 BUGS AND LIMITATIONS

Send reports to address below

=head1 AUTHOR

Peter Flanigan, C<< <Support at RoxSoft.co.uk> >>

=head1 LICENSE AND COPYRIGHT

Copyright (c) 2009 Peter Flanigan

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

=cut

# Local Variables:
# mode: perl
# tab-width: 3
# End:
