* MooseX::Getopt::Session: Drop die_on_warning attribute.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Session.pm
index 0b10744..81f4b26 100644 (file)
@@ -9,7 +9,7 @@ use maybe 'MooseX::Getopt::Parser::Descriptive';
 #use Smart::Comments;
 
 # Pluggined MooseX::Getopt::Parser parser
-has 'getopt_parser' => (
+has 'parser' => (
     is => 'rw',
     does => 'MooseX::Getopt::Parser',
     default => sub {
@@ -64,13 +64,6 @@ has 'warning' => (
 );
 
 # Die if warnings was occured
-has 'die_on_warning' => (
-    is => 'rw',
-    isa => 'Bool',
-    default => 1,
-);
-
-
 sub BUILD {
     ### MooseX::Getopt::Session::BUILD : @_
     my ($self, $args) = @_;
@@ -85,7 +78,7 @@ sub build_options {
     my @attrs = map { $_->_compute_getopt_attrs } $self->_compute_getopt_classes;
     ### MooseX::Getopt::Session::build_options @attrs -> name : map { $_->name } @attrs
 
-    return $self->getopt_parser->build_options( $self, @attrs );
+    return $self->parser->build_options( $self, @attrs );
 }