mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user