Bot::Net::Script - implementation of the Bot::Net command-line interface


Bot-Net documentation Contained in the Bot-Net distribution.

Index


Code Index:

NAME

Top

Bot::Net::Script - implementation of the Bot::Net command-line interface

SYNOPSIS

Top

  bin/botnet <command> <options>

DESCRIPTION

Top

This is a command-line interface handler based on App::CLI. This module doesn't really do a lot more than just inherit from App::CLI and handle a few special cases.

SEE ALSO

Top

App::CLI

AUTHORS

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Bot-Net documentation Contained in the Bot-Net distribution.
use strict;
use warnings;

package Bot::Net::Script;
use base qw/ App::CLI /;

sub prepare {
    my $self = shift;

    if ($ARGV[0] =~ /--?h(elp?)/i) {
        $ARGV[0] = 'help';
    }

    return $self->SUPER::prepare(@_);
}

1;