Fix console option parser for --empty in ProjectTask.

Command 'cake bake project --empty myapp' ignores argument myapp.
This commit is contained in:
Majna 2012-02-07 18:35:12 +01:00
parent b6f99bc0b9
commit 454f383951
2 changed files with 1 additions and 1 deletions

View file

@ -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',

View file

@ -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',