From 345c4e60a5cb629f6b17c37a0ef16f1f715355d5 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 25 Mar 2014 10:58:20 -0400 Subject: [PATCH] Expand help in view task. --- src/Console/Command/Task/ViewTask.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Console/Command/Task/ViewTask.php b/src/Console/Command/Task/ViewTask.php index 9aa9c92beb1..5e229fa5006 100644 --- a/src/Console/Command/Task/ViewTask.php +++ b/src/Console/Command/Task/ViewTask.php @@ -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)")