@@ -420,46 +420,6 @@ public function getTemplate($action) {
420
420
return $ template ;
421
421
}
422
422
423
- /**
424
- * Displays help contents
425
- *
426
- */
427
- public function help () {
428
- $ this ->hr ();
429
- $ this ->out ("Usage: cake bake view <arg1> <arg2>... " );
430
- $ this ->hr ();
431
- $ this ->out ('Arguments: ' );
432
- $ this ->out ();
433
- $ this ->out ("<controller> " );
434
- $ this ->out ("\tName of the controller views to bake. Can use Plugin.name " );
435
- $ this ->out ("\tas a shortcut for plugin baking. " );
436
- $ this ->out ();
437
- $ this ->out ("<action> " );
438
- $ this ->out ("\tName of the action view to bake " );
439
- $ this ->out ();
440
- $ this ->out ('Commands: ' );
441
- $ this ->out ();
442
- $ this ->out ("view <controller> " );
443
- $ this ->out ("\tWill read the given controller for methods " );
444
- $ this ->out ("\tand bake corresponding views. " );
445
- $ this ->out ("\tUsing the -admin flag will only bake views for actions " );
446
- $ this ->out ("\tthat begin with Routing.prefixes. " );
447
- $ this ->out ("\tIf var scaffold is found it will bake the CRUD actions " );
448
- $ this ->out ("\t(index,view,add,edit) " );
449
- $ this ->out ();
450
- $ this ->out ("view <controller> <action> " );
451
- $ this ->out ("\tWill bake a template. core templates: (index, add, edit, view) " );
452
- $ this ->out ();
453
- $ this ->out ("view <controller> <template> <alias> " );
454
- $ this ->out ("\tWill use the template specified " );
455
- $ this ->out ("\tbut name the file based on the alias " );
456
- $ this ->out ();
457
- $ this ->out ("view all " );
458
- $ this ->out ("\tBake all CRUD action views for all controllers. " );
459
- $ this ->out ("\tRequires that models and controllers exist. " );
460
- $ this ->_stop ();
461
- }
462
-
463
423
/**
464
424
* get the option parser for this task
465
425
*
@@ -476,11 +436,13 @@ public function getOptionParser() {
476
436
))->addArgument ('alias ' , array (
477
437
'help ' => __ ('Will bake the template in <action> but create the filename after <alias>. ' )
478
438
))->addOption ('plugin ' , array (
439
+ 'short ' => 'p ' ,
479
440
'help ' => __ ('Plugin to bake the view into. ' )
480
441
))->addOption ('admin ' , array (
481
442
'help ' => __ ('Set to only bake views for a prefix in Routing.prefixes ' ),
482
443
'boolean ' => true
483
444
))->addOption ('connection ' , array (
445
+ 'short ' => 'c ' ,
484
446
'help ' => __ ('The connection the connected model is on. ' )
485
447
))->addSubcommand ('all ' , array (
486
448
'help ' => __ ('Bake all CRUD action views for all controllers. Requires models and controllers to exist. ' )
0 commit comments