From 00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 6 Feb 2009 18:18:01 +0000 Subject: * Implement help from the region console * So at the moment once can type 'help terrain fill' as well as 'terrain fill help' * Current implementation is a transient hack that should be tidied up soon --- OpenSim/Region/Application/OpenSim.cs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Application/OpenSim.cs') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 0cd708b..af42a3d 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -712,10 +712,25 @@ namespace OpenSim } else { - ICommander moduleCommander = SceneManager.CurrentOrFirstScene.GetCommander(helpArgs[0]); - if (moduleCommander != null) + // Messily we want to join all the help params back here + //string helpSubject = string.Join(" ", helpArgs); + + // FIXME: Very cheap hack to get transition help working. Will disappear very shortly. + if (helpArgs.Length == 1) { - m_console.Notice(moduleCommander.Help); + ICommander moduleCommander = SceneManager.CurrentOrFirstScene.GetCommander(helpArgs[0]); + if (moduleCommander != null) + { + m_console.Notice(moduleCommander.Help); + } + } + else + { + ICommand command = SceneManager.CurrentOrFirstScene.GetCommand(helpArgs[1]); + if (command != null) + { + m_console.Notice(command.Help); + } } } } -- cgit v1.1