Minilla

 view release on metacpan or  search on metacpan

lib/Minilla/CLI.pm  view on Meta::CPAN


use Moo;

no Moo;

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

    local $Minilla::AUTO_INSTALL = 1;
    local $Minilla::Logger::COLOR = -t STDOUT ? 1 : 0;
    local @ARGV = @args;
    my @commands;
    my $version;
    my $p = Getopt::Long::Parser->new(
        config => [ "no_ignore_case", "pass_through" ],
    );
    $p->getoptions(
        "h|help"         => sub { unshift @commands, 'help' },
        "color!"         => \$Minilla::Logger::COLOR,
        "debug!"         => \$Minilla::DEBUG,
        "auto-install!"  => \$Minilla::AUTO_INSTALL,

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.334 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )