From a034b640dab9d08b23270e1ee8255ae92fa8f816 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 9 Feb 2009 20:52:04 +0000 Subject: * Add the ability to type help for more detailed help about a specific command if any is available --- OpenSim/Region/Application/OpenSim.cs | 3 ++- OpenSim/Region/Application/OpenSimBase.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 5bce225..d706e05 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -142,7 +142,8 @@ namespace OpenSim m_console.Commands.AddCommand("region", "save oar", "save oar ", - "Save a region's data to an OAR archive", SaveOar); + "Save a region's data to an OAR archive", + "More information on forthcoming options here soon", SaveOar); m_console.Commands.AddCommand("region", "save inventory", "save inventory ", diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 4d56147..d032864 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -203,14 +203,14 @@ namespace OpenSim foreach (string topic in topics) { - m_console.Commands.AddCommand("plugin", "help "+topic, - "help "+topic, - "Get help on plugin command '"+topic+"'", + m_console.Commands.AddCommand("plugin", "help " + topic, + "help " + topic, + "Get help on plugin command '" + topic + "'", HandleCommanderHelp); m_console.Commands.AddCommand("plugin", topic, topic, - "Execute subcommand for plugin '"+topic+"'", + "Execute subcommand for plugin '" + topic + "'", null); ICommander commander = @@ -221,8 +221,8 @@ namespace OpenSim foreach (string command in commander.Commands.Keys) { - m_console.Commands.AddCommand(topic, topic+" "+command, - topic+" "+commander.Commands[command].ShortHelp(), + m_console.Commands.AddCommand(topic, topic + " " + command, + topic + " " + commander.Commands[command].ShortHelp(), String.Empty, HandleCommanderCommand); } } -- cgit v1.1