* MooseX::Getopt::Session: Drop die_on_warning attribute.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Parser / Long.pm
index 70ad5a1..12f6565 100644 (file)
@@ -68,7 +68,7 @@ sub build_options {
     %options = map { $_ => $options{$_} } grep { defined $options{$_} } keys %options;
     $getopt->options( \%options );
 
-    die join '', $getopt->warning if $getopt->die_on_warning && $getopt->has_warning;
+    die join '', $getopt->warning if $getopt->has_warning;
 
     ### MooseX::Getopt::Parser::Long::build_options %options : %options
     return \%options;