mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-19 16:10:54 +00:00
Fix console option parser for --empty in ProjectTask.
Command 'cake bake project --empty myapp' ignores argument myapp.
This commit is contained in:
parent
b6f99bc0b9
commit
454f383951
2 changed files with 1 additions and 1 deletions
|
@ -425,6 +425,7 @@ class ProjectTask extends AppShell {
|
||||||
)->addArgument('name', array(
|
)->addArgument('name', array(
|
||||||
'help' => __d('cake_console', 'Application directory to make, if it starts with "/" the path is absolute.')
|
'help' => __d('cake_console', 'Application directory to make, if it starts with "/" the path is absolute.')
|
||||||
))->addOption('empty', array(
|
))->addOption('empty', array(
|
||||||
|
'boolean' => true,
|
||||||
'help' => __d('cake_console', 'Create empty files in each of the directories. Good if you are using git')
|
'help' => __d('cake_console', 'Create empty files in each of the directories. Good if you are using git')
|
||||||
))->addOption('skel', array(
|
))->addOption('skel', array(
|
||||||
'default' => current(App::core('Console')) . 'Templates' . DS . 'skel',
|
'default' => current(App::core('Console')) . 'Templates' . DS . 'skel',
|
||||||
|
|
|
@ -170,7 +170,6 @@ class ProjectTaskTest extends CakeTestCase {
|
||||||
'Console' . DS . 'Command' . DS . 'Task' => 'empty',
|
'Console' . DS . 'Command' . DS . 'Task' => 'empty',
|
||||||
'Controller' . DS . 'Component' => 'empty',
|
'Controller' . DS . 'Component' => 'empty',
|
||||||
'Model' . DS . 'Behavior' => 'empty',
|
'Model' . DS . 'Behavior' => 'empty',
|
||||||
'View' . DS . 'Helper' => 'AppHelper.php',
|
|
||||||
'View' . DS . 'Errors' => 'empty',
|
'View' . DS . 'Errors' => 'empty',
|
||||||
'View' . DS . 'Scaffolds' => 'empty',
|
'View' . DS . 'Scaffolds' => 'empty',
|
||||||
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior' => 'empty',
|
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior' => 'empty',
|
||||||
|
|
Loading…
Add table
Reference in a new issue