From 749c3fef8ad2d3af97fcd9ab9c72740675e46715 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 8 Mar 2012 01:51:37 +0000 Subject: Change "help" to display categories/module list then "help " to display commands in a category. This is to deal with the hundred lines of command splurge when one previously typed "help" Modelled somewhat on the mysql console One can still type help to get per command help at any point. Categories capitalized to avoid conflict with the all-lowercase commands (except for commander system, as of yet). Does not affect command parsing or any other aspects of the console apart from the help system. Backwards compatible with existing modules. --- OpenSim/Services/UserAccountService/UserAccountService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Services/UserAccountService') diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 4a29690..6f1d745 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs @@ -89,17 +89,17 @@ namespace OpenSim.Services.UserAccountService if (m_RootInstance == null && MainConsole.Instance != null) { m_RootInstance = this; - MainConsole.Instance.Commands.AddCommand("UserService", false, + MainConsole.Instance.Commands.AddCommand("Users", false, "create user", "create user [ [ [ [ []]]]]", "Create a new user", HandleCreateUser); - MainConsole.Instance.Commands.AddCommand("UserService", false, + MainConsole.Instance.Commands.AddCommand("Users", false, "reset user password", "reset user password [ [ []]]", "Reset a user password", HandleResetUserPassword); - MainConsole.Instance.Commands.AddCommand("UserService", false, + MainConsole.Instance.Commands.AddCommand("Users", false, "set user level", "set user level [ [ []]]", "Set user level. If >= 200 and 'allow_grid_gods = true' in OpenSim.ini, " @@ -107,7 +107,7 @@ namespace OpenSim.Services.UserAccountService + "It will also affect the 'login level' command. ", HandleSetUserLevel); - MainConsole.Instance.Commands.AddCommand("UserService", false, + MainConsole.Instance.Commands.AddCommand("Users", false, "show account", "show account ", "Show account details for the given user", HandleShowAccount); -- cgit v1.1