aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-24 03:07:01 +0000
committerJustin Clark-Casey (justincc)2012-03-24 03:07:01 +0000
commit4f17537555856823cd3c3cc80708cc1d8bc574b4 (patch)
treedf81180a5cfbe2ce01a2af74e52c957836eb5fcb /OpenSim/Region
parentHack example on to "terrain save-tile" extended help. (diff)
downloadopensim-SC_OLD-4f17537555856823cd3c3cc80708cc1d8bc574b4.zip
opensim-SC_OLD-4f17537555856823cd3c3cc80708cc1d8bc574b4.tar.gz
opensim-SC_OLD-4f17537555856823cd3c3cc80708cc1d8bc574b4.tar.bz2
opensim-SC_OLD-4f17537555856823cd3c3cc80708cc1d8bc574b4.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 484159c..5de3f25 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -248,15 +248,16 @@ namespace OpenSim
248 { 248 {
249 string capitalizedTopic = char.ToUpper(topic[0]) + topic.Substring(1); 249 string capitalizedTopic = char.ToUpper(topic[0]) + topic.Substring(1);
250 250
251 // This is a hack to allow the user to enter the help command in upper or lowercase. This will go
252 // away at some point.
253 m_console.Commands.AddCommand(capitalizedTopic, false, "help " + topic,
254 "help " + capitalizedTopic,
255 "Get help on plugin command '" + topic + "'",
256 HandleCommanderHelp);
251 m_console.Commands.AddCommand(capitalizedTopic, false, "help " + capitalizedTopic, 257 m_console.Commands.AddCommand(capitalizedTopic, false, "help " + capitalizedTopic,
252 "help " + capitalizedTopic, 258 "help " + capitalizedTopic,
253 "Get help on plugin command '" + topic + "'", 259 "Get help on plugin command '" + topic + "'",
254 HandleCommanderHelp); 260 HandleCommanderHelp);
255//
256// m_console.Commands.AddCommand("General", false, topic,
257// topic,
258// "Execute subcommand for plugin '" + topic + "'",
259// null);
260 261
261 ICommander commander = null; 262 ICommander commander = null;
262 263