* Implement help <command> 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
This commit is contained in:
Justin Clarke Casey
2009-02-06 18:18:01 +00:00
parent 9b66108081
commit 00a3cbd6fa
4 changed files with 73 additions and 11 deletions

View File

@@ -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);
}
}
}
}