Navigation Menu

Skip to content

Commit

Permalink
Fix indentation and add short option 't' for template
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed May 29, 2013
1 parent ae3d9a7 commit 5aac41e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ControllerTask.php
Expand Up @@ -475,6 +475,7 @@ public function getOptionParser() {
'short' => 'c',
'help' => __d('cake_console', 'The connection the controller\'s model is on.')
))->addOption('theme', array(
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addSubcommand('all', array(
'help' => __d('cake_console', 'Bake all controllers with CRUD methods.')
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Console/Command/Task/FixtureTask.php
Expand Up @@ -88,7 +88,8 @@ public function getOptionParser() {
'short' => 's',
'boolean' => true
))->addOption('theme', array(
'help' => __d('cake_console', 'Theme to use when baking code.')
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addOption('records', array(
'help' => __d('cake_console', 'Used with --count and <name>/all commands to pull [n] records from the live tables, where [n] is either --count or the default of 10.'),
'short' => 'r',
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -993,6 +993,7 @@ public function getOptionParser() {
'short' => 'p',
'help' => __d('cake_console', 'Plugin to bake the model into.')
))->addOption('theme', array(
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addOption('connection', array(
'short' => 'c',
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -439,6 +439,7 @@ public function getOptionParser() {
'boolean' => true,
'help' => __d('cake_console', 'Create empty files in each of the directories. Good if you are using git')
))->addOption('theme', array(
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addOption('skel', array(
'default' => current(App::core('Console')) . 'Templates' . DS . 'skel',
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/TestTask.php
Expand Up @@ -564,6 +564,7 @@ public function getOptionParser() {
))->addArgument('name', array(
'help' => __d('cake_console', 'An existing class to bake tests for.')
))->addOption('theme', array(
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addOption('plugin', array(
'short' => 'p',
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Console/Command/Task/ViewTask.php
Expand Up @@ -436,7 +436,8 @@ public function getOptionParser() {
'help' => __d('cake_console', 'Set to only bake views for a prefix in Routing.prefixes'),
'boolean' => true
))->addOption('theme', array(
'help' => __d('cake_console', 'Theme to use when baking code.')
'short' => 't',
'help' => __d('cake_console', 'Theme to use when baking code.')
))->addOption('connection', array(
'short' => 'c',
'help' => __d('cake_console', 'The connection the connected model is on.')
Expand Down

0 comments on commit 5aac41e

Please sign in to comment.