From a17d40e9485a08cc37ca2c83e8a275491f90ec01 Mon Sep 17 00:00:00 2001 From: nate Date: Mon, 14 May 2007 02:19:26 +0000 Subject: [PATCH] Fixing incorrect index in ACL shell script error message, and clarifying help text git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5089 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/acl.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cake/console/libs/acl.php b/cake/console/libs/acl.php index 897c648a4..ed3a901b7 100644 --- a/cake/console/libs/acl.php +++ b/cake/console/libs/acl.php @@ -351,7 +351,8 @@ class AclShell extends Shell { "\t\t\t- . - The node will be bound to a specific record of the given model\n" . "\t\t\t- - The node will be given a string alias (or path, in the case of ),\n" . "\t\t\t i.e. 'John'. When used with , this takes the form of an alias path,\n" . - "\t\t\t i.e. //.\n", + "\t\t\t i.e. //.\n" . + "\t\tTo add a node at the root level, enter 'root' or '/' as the parameter.", 'delete' => "\tdelete aro|aco \n" . "\t\tDeletes the ACL object with the given reference (see 'create' for info on node references).\n", @@ -396,7 +397,7 @@ class AclShell extends Shell { $this->out("{$cmd}\n\n"); } } elseif (isset($commands[low($this->args[1])])) { - $this->out($commands[low($this->args[1])]); + $this->out($commands[low($this->args[1])] . "\n\n"); } else { $this->out("Command '" . $this->args[1] . "' not found"); } @@ -407,7 +408,7 @@ class AclShell extends Shell { */ function checkNodeType() { if ($this->args[1] != 'aco' && $this->args[1] != 'aro') { - $this->displayError("Missing/Unknown node type: '".$this->args[0]."'", 'Please specify which ACL object type you wish to create.'); + $this->displayError("Missing/Unknown node type: '".$this->args[1]."'", 'Please specify which ACL object type you wish to create.'); } } /**