X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScript%2FCreate.pm;h=e65a597176912f67249768ccecb06cb1f579311f;hb=883c37ef13bcc69f7523a2a2e785795fd2b6f2aa;hp=ab85deda0a9a7ef0bbe09b162da8c68c96916194;hpb=0a33c6d347b1f545a3b573eee8056fae6ccb0829;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Script/Create.pm b/lib/Catalyst/Script/Create.pm index ab85ded..e65a597 100644 --- a/lib/Catalyst/Script/Create.pm +++ b/lib/Catalyst/Script/Create.pm @@ -5,8 +5,6 @@ use namespace::autoclean; with 'Catalyst::ScriptRole'; -__PACKAGE__->meta->get_attribute('help')->cmd_aliases('h'); - has force => ( traits => [qw(Getopt)], cmd_aliases => 'nonew', @@ -36,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);