Skip to content

Commit

Permalink
Expand help in view task.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 25, 2014
1 parent 2b0f45b commit 345c4e6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Console/Command/Task/ViewTask.php
Expand Up @@ -417,9 +417,20 @@ public function getTemplate($action) {
public function getOptionParser() {
$parser = parent::getOptionParser();

$parser->description(
__d('cake_console', 'Bake views for a controller, using built-in or custom templates.')
)->addArgument('controller', [
$parser->description([
__d('cake_console', 'Bake views for a controller, using built-in or custom templates.'),
__d('cake_console', 'You can bake all the views for a controller using: '),
'',
__d('cake_console', ' Console/cake bake view Tasks'),
'',
__d('cake_console', 'You can bake a single view using:'),
'',
__d('cake_console', ' Console/cake bake view Tasks index'),
'',
__d('cake_console', 'You can bake a single view for all controllers using:'),
'',
__d('cake_console', ' Console/cake bake view all index')
])->addArgument('controller', [
'help' => __d('cake_console', 'Name of the controller views to bake. Can be Plugin.name as a shortcut for plugin baking.')
])->addArgument('action', [
'help' => __d('cake_console', "Will bake a single action's file. core templates are (index, add, edit, view)")
Expand Down

0 comments on commit 345c4e6

Please sign in to comment.