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. --- .../PhysicsParameters/PhysicsParameters.cs | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs') diff --git a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs index 23ef757..a3f68e5 100755 --- a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs +++ b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs @@ -100,22 +100,22 @@ namespace OpenSim.Region.OptionalModules.PhysicsParameters { if (!m_commandsLoaded) { - MainConsole.Instance.Commands.AddCommand("Physics", false, "physics set", - "physics set", - "Set physics parameter from currently selected region" + Environment.NewLine - + "Invocation: " + setInvocation, + MainConsole.Instance.Commands.AddCommand( + "Regions", false, "physics set", + setInvocation, + "Set physics parameter from currently selected region", ProcessPhysicsSet); - MainConsole.Instance.Commands.AddCommand("Physics", false, "physics get", - "physics get", - "Get physics parameter from currently selected region" + Environment.NewLine - + "Invocation: " + getInvocation, + MainConsole.Instance.Commands.AddCommand( + "Regions", false, "physics get", + getInvocation, + "Get physics parameter from currently selected region", ProcessPhysicsGet); - MainConsole.Instance.Commands.AddCommand("Physics", false, "physics list", - "physics list", - "List settable physics parameters" + Environment.NewLine - + "Invocation: " + listInvocation, + MainConsole.Instance.Commands.AddCommand( + "Regions", false, "physics list", + listInvocation, + "List settable physics parameters", ProcessPhysicsList); m_commandsLoaded = true; -- cgit v1.1