ソースを参照

Fix console option parser for --empty in ProjectTask.
Command 'cake bake project --empty myapp' ignores argument myapp.

Majna 14 年 前
コミット
454f383951

+ 1 - 0
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',

+ 0 - 1
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',