Permalink
Browse files

Fix console option parser for --empty in ProjectTask.

Command 'cake bake project --empty myapp' ignores argument myapp.
  • Loading branch information...
1 parent b6f99bc commit 454f3839512d1b8554661767d200b0e5359c9c77 @majna majna committed Feb 7, 2012
@@ -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',
@@ -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',

0 comments on commit 454f383

Please sign in to comment.