* MooseX::Getopt::Parser::*: default config for getopt is 'default'.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Parser / Long.pm
index 2914824..70e5f34 100644 (file)
@@ -15,7 +15,7 @@ has config => (
     is => 'rw',
     isa => 'ArrayRef[Str]',
     auto_deref => 1,
-    default => sub { [] },
+    default => sub { [ 'default' ] },
 );
 
 
@@ -53,7 +53,6 @@ sub build_options {
         local @ARGV = @{ $getopt->ARGV };
 
         local $SIG{__WARN__} = sub {
-            return warn @_ if $_[0]=~/^\###/;   # Smart::Comments
             $warnings .= $_[0];
         };