Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5415 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-09 03:49:00 +00:00
parent 38bf760524
commit 79147c297f

View file

@ -421,14 +421,14 @@ class AclShell extends Shell {
);
$this->out($head);
if (!isset($this->args[1])) {
if (!isset($this->args[0])) {
foreach ($commands as $cmd) {
$this->out("{$cmd}\n\n");
}
} elseif (isset($commands[low($this->args[1])])) {
$this->out($commands[low($this->args[1])] . "\n\n");
} elseif (isset($commands[low($this->args[0])])) {
$this->out($commands[low($this->args[0])] . "\n\n");
} else {
$this->out(sprintf(__("Command '%s' not found", true), $this->args[1]));
$this->out(sprintf(__("Command '%s' not found", true), $this->args[0]));
}
}
/**