use shellwords to split up pp option string
Rafael Kitover [Fri, 18 Jun 2010 10:44:43 +0000 (06:44 -0400)]
lib/Module/Install/Catalyst.pm

index 06f9cc8..5d45b69 100644 (file)
@@ -221,8 +221,9 @@ sub catalyst_par_options {
     else {
         my $p = Getopt::Long::Parser->new(config => ['no_ignore_case']);
         my %o;
+        require Text::ParseWords;
         {
-            local @ARGV = split ' ', $optstring;
+            local @ARGV = Text::ParseWords::shellwords($optstring);
             $p->getoptions(\%o, PAR::Packer->options);
         }
         %PAROPTS = ( %PAROPTS, %o);