Minilla
view release on metacpan or search on metacpan
lib/Minilla/CLI.pm view on Meta::CPAN
or die "Cannot restore standard output: $!";
die "Cannot flush redirected standard output: $flush_error" unless $flushed;
};
}
sub _run {
my ($self, @args) = @_;
local $Minilla::AUTO_INSTALL = 1;
local $Minilla::Logger::COLOR = -t STDERR ? 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,
( run in 1.517 second using v1.01-cache-2.11-cpan-ac8be02dad9 )