Skip to content

Commit

Permalink
Fix console option parser for --empty in ProjectTask.
Browse files Browse the repository at this point in the history
Command 'cake bake project --empty myapp' ignores argument myapp.
  • Loading branch information
majna committed Feb 7, 2012
1 parent b6f99bc commit 454f383
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -425,6 +425,7 @@ public function getOptionParser() {
)->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',
Expand Down
Expand Up @@ -170,7 +170,6 @@ public function testBakeEmptyFlag() {
'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',
Expand Down

0 comments on commit 454f383

Please sign in to comment.