Allow the user to enter help topics in upper or lowercase.

Forcing uppercase (e.g. help Assets) is too annoying.
Thanks to WhiteStar for pointing this out.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-03-24 03:07:01 +00:00
parent f03c3c062e
commit 4f17537555
2 changed files with 18 additions and 15 deletions

View File

@@ -248,15 +248,16 @@ namespace OpenSim
{
string capitalizedTopic = char.ToUpper(topic[0]) + topic.Substring(1);
// This is a hack to allow the user to enter the help command in upper or lowercase. This will go
// away at some point.
m_console.Commands.AddCommand(capitalizedTopic, false, "help " + topic,
"help " + capitalizedTopic,
"Get help on plugin command '" + topic + "'",
HandleCommanderHelp);
m_console.Commands.AddCommand(capitalizedTopic, false, "help " + capitalizedTopic,
"help " + capitalizedTopic,
"Get help on plugin command '" + topic + "'",
HandleCommanderHelp);
//
// m_console.Commands.AddCommand("General", false, topic,
// topic,
// "Execute subcommand for plugin '" + topic + "'",
// null);
ICommander commander = null;