Factor restarter arg assembly out into it's own routine for ease of testing. Use...
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Create.pm
index 361aa26..e65a597 100644 (file)
@@ -34,7 +34,7 @@ has helper_class => ( isa => 'Str', is => 'ro', default => 'Catalyst::Helper' );
 sub run {
     my ($self) = @_;
 
-    $self->_exit_with_usage if !$ARGV[0];
+    $self->_exit_with_usage if !$self->ARGV->[0];
 
     my $helper_class = $self->helper_class;
     Class::MOP::load_class($helper_class);