fixing acl console for help, #3024, updating bake controller task help

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5493 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-08-05 18:18:30 +00:00
parent 020841b989
commit e4b57ef80f
2 changed files with 2 additions and 3 deletions

View file

@ -279,6 +279,7 @@ class ShellDispatcher {
if ($command == 'help') {
if (method_exists($shell, 'help')) {
$this->shiftArgs();
$shell->help();
exit();
} else {
@ -334,8 +335,6 @@ class ShellDispatcher {
if ($missingCommand && method_exists($shell, 'main')) {
$shell->startup();
$shell->main();
} elseif ($missingCommand && method_exists($shell, 'help')) {
$shell->help();
} elseif (!$privateMethod && method_exists($shell, $command)) {
$this->shiftArgs();
$shell->startup();

View file

@ -543,7 +543,7 @@ class ControllerTask extends Shell {
$this->out("\n\tcontroller <name>\n\t\tbakes controller with var \$scaffold");
$this->out("\n\tcontroller <name> scaffold\n\t\tbakes controller with scaffold actions.\n\t\t(index, view, add, edit, delete)");
$this->out("\n\tcontroller <name> scaffold admin\n\t\tbakes a controller with scaffold actions for both public and CAKE_ADMIN");
$this->out("\n\tcontroller <name> null admin\n\t\tbakes a controller with scaffold actions for CAKE_ADMIN");
$this->out("\n\tcontroller <name> admin\n\t\tbakes a controller with scaffold actions only for CAKE_ADMIN");
$this->out("");
exit();
}