* MooseX::Getopt::Parser::* set status to true value if there is no warnings.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Parser / Long.pm
index 3a1eb2d..2914824 100644 (file)
@@ -66,7 +66,7 @@ sub build_options {
     # Filter not defined values in new_options hashref
     $new_options = { map { $_ => $new_options->{$_} } grep { defined $new_options->{$_} } keys %$new_options };
 
-    $getopt->status( !! $warnings );
+    $getopt->status( ! $warnings );
     $getopt->options( $new_options );
 
     die $warnings if $warnings;