From 454f3839512d1b8554661767d200b0e5359c9c77 Mon Sep 17 00:00:00 2001 From: Majna Date: Tue, 7 Feb 2012 18:35:12 +0100 Subject: [PATCH] Fix console option parser for --empty in ProjectTask. Command 'cake bake project --empty myapp' ignores argument myapp. --- lib/Cake/Console/Command/Task/ProjectTask.php | 1 + lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index f6e30b2d3..afb805e2f 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -425,6 +425,7 @@ class ProjectTask extends AppShell { )->addArgument('name', array( 'help' => __d('cake_console', 'Application directory to make, if it starts with "/" the path is absolute.') ))->addOption('empty', array( + 'boolean' => true, 'help' => __d('cake_console', 'Create empty files in each of the directories. Good if you are using git') ))->addOption('skel', array( 'default' => current(App::core('Console')) . 'Templates' . DS . 'skel', diff --git a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php index a18e8c23a..13defe312 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php @@ -170,7 +170,6 @@ class ProjectTaskTest extends CakeTestCase { 'Console' . DS . 'Command' . DS . 'Task' => 'empty', 'Controller' . DS . 'Component' => 'empty', 'Model' . DS . 'Behavior' => 'empty', - 'View' . DS . 'Helper' => 'AppHelper.php', 'View' . DS . 'Errors' => 'empty', 'View' . DS . 'Scaffolds' => 'empty', 'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior' => 'empty',