* MooseX::Getopt::Session: New attribute "status".
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Parser / Long.pm
index e697e1f..3a1eb2d 100644 (file)
@@ -66,6 +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->options( $new_options );
 
     die $warnings if $warnings;