JiftyX::Fixtures::Script - Main script package handling dispatch for subcommands


JiftyX-Fixtures documentation Contained in the JiftyX-Fixtures distribution.

Index


Code Index:

NAME

Top

JiftyX::Fixtures::Script - Main script package handling dispatch for subcommands

VERSION

Top

version 0.07

AUTHOR

Top

  shelling <shelling@cpan.org>

COPYRIGHT AND LICENSE

Top


JiftyX-Fixtures documentation Contained in the JiftyX-Fixtures distribution.

package JiftyX::Fixtures::Script;
our $VERSION = '0.07';

# ABSTRACT: Main script package handling dispatch for subcommands

use strict;
use warnings;

use App::CLI;
use base qw(App::CLI App::CLI::Command);

sub options {
  return (
    'h|help|?'  => 'help',
    'man'     => 'man',
  );
}

sub before_run {
  my ($here, $self) = @_;

  if ($self->{help}) {
    print "jiftyx-fixtures v$JiftyX::Fixtures::VERSION\n";
    eval 'print $' . ref($self) . '::help_msg';
    exit;
  }

}

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


1;

__END__