This file documents the revision history for Perl extension Catalyst-Devel.
+ - don't pollute M::I plugin detector with GetOptions symbol from
+ GetOpt::Long
+
1.28 2010-06-16 02:43:00
- Fix generated Pod tests so that the first check is if the TEST_POD
environment variable is set. (RT#58433)
use FindBin;
use File::Copy::Recursive 'rcopy';
use File::Spec ();
-use Getopt::Long qw(GetOptionsFromString :config no_ignore_case);
+use Getopt::Long ();
use Data::Dumper;
my $SAFETY = 0;
sub catalyst_par_options {
my ( $self, $optstring ) = @_;
- my %o = ();
eval "use PAR::Packer ()";
if ($@) {
warn "WARNING: catalyst_par_options ignored - you need PAR::Packer\n"
}
else {
- GetOptionsFromString($optstring, \%o, PAR::Packer->options);
+ my $p = Getopt::Long::Parser->new(config => ['no_ignore_case']);
+ my %o;
+ {
+ local @ARGV = $optstring;
+ $p->getoptions(\%o, PAR::Packer->options);
+ }
%PAROPTS = ( %PAROPTS, %o);
}
}