Cinnamon
view release on metacpan or search on metacpan
lib/Cinnamon/CLI.pm view on Meta::CPAN
use constant { SUCCESS => 0, ERROR => 1 };
sub new {
my $class = shift;
bless { }, $class;
}
sub run {
my ($self, @args) = @_;
local @ARGV = @args;
my $p = Getopt::Long::Parser->new(
config => ["no_ignore_case", "pass_through"],
);
$p->getoptions(
"h|help" => \$self->{help},
"i|info" => \$self->{info},
"c|config=s" => \$self->{config},
"s|set=s%" => \$self->{override_settings},
"I|ignore-errors" => \$self->{ignore_errors},
);
( run in 0.575 second using v1.01-cache-2.11-cpan-49f99fa48dc )