App-MtAws
view release on metacpan or search on metacpan
lib/App/MtAws/ConfigEngine.pm view on Meta::CPAN
return ($self->{options}->{$name}, 0);
} elsif (defined($self->{optaliasmap}->{$name})) {
return ($self->{options}->{ $self->{optaliasmap}->{$name} }, 1);
} else {
return (undef, undef);
}
}
sub parse_options
{
(my $self, local @ARGV) = @_; # we override @ARGV here, cause GetOptionsFromArray is not exported on perl 5.8.8
return { command => 'help', map { $_ => undef } qw/errors error_texts warnings warning_texts options/}
if (@ARGV && $ARGV[0] =~ /\b(help|h)\b/i);
return { command => 'version', map { $_ => undef } qw/errors error_texts warnings warning_texts options/}
if (@ARGV && $ARGV[0] =~ /^\-?\-?version$/i);
local $context = $self;
( run in 0.441 second using v1.01-cache-2.11-cpan-4d50c553e7e )