Mech tests branch
Tomas Doran [Sat, 22 May 2010 10:18:14 +0000 (10:18 +0000)]
r15582@spaceinvaders:  t0m | 2010-05-21 18:20:01 +0100
Fix --mech as reportedon list as 'create controller  'option' -mechanize fails'
r15583@spaceinvaders:  t0m | 2010-05-21 18:21:18 +0100
Fix missing - in option, options must be --

Changes
lib/Catalyst/Script/Create.pm

diff --git a/Changes b/Changes
index fe66038..25bcbc3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,13 @@
 # This file documents the revision history for Perl extension Catalyst.
 
+ Bug fixes:
+  - Fix the --mech and --mechanize options to the myapp_create.pl script
+    to operate correctly by fixing the options passed down into the script.
+
+ Documentation:
+  - Fix missing - in the docs when describing the --mechanize option at one
+    point.
+
 5.80024 2010-05-15 11:55:44
 
   Bug fixes:
index 05b4a66..95c0710 100644 (file)
@@ -46,7 +46,7 @@ sub run {
     Class::MOP::load_class($helper_class);
     my $helper = $helper_class->new( { '.newfiles' => !$self->force, mech => $self->mechanize } );
 
-    $self->_getopt_full_usage unless $helper->mk_component( $self->application_name, @ARGV );
+    $self->_getopt_full_usage unless $helper->mk_component( $self->application_name, @{$self->extra_argv} );
 
 }
 
@@ -68,7 +68,7 @@ Catalyst::Script::Create - Create a new Catalyst Component
  Examples:
    myapp_create.pl controller My::Controller
    myapp_create.pl controller My::Controller BindLex
-   myapp_create.pl -mechanize controller My::Controller
+   myapp_create.pl --mechanize controller My::Controller
    myapp_create.pl view My::View
    myapp_create.pl view MyView TT
    myapp_create.pl view TT TT