aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/CommandConsole.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Console/CommandConsole.cs')
-rw-r--r--OpenSim/Framework/Console/CommandConsole.cs19
1 files changed, 12 insertions, 7 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs
index de30414..d703d78 100644
--- a/OpenSim/Framework/Console/CommandConsole.cs
+++ b/OpenSim/Framework/Console/CommandConsole.cs
@@ -83,7 +83,7 @@ namespace OpenSim.Framework.Console
83 = "To enter an argument that contains spaces, surround the argument with double quotes.\nFor example, show object name \"My long object name\"\n"; 83 = "To enter an argument that contains spaces, surround the argument with double quotes.\nFor example, show object name \"My long object name\"\n";
84 84
85 public const string ItemHelpText 85 public const string ItemHelpText
86= @"For more information, type 'help all' to get a list of all commands, 86= @"For more information, type 'help' to get a list of all commands,
87 or type help <item>' where <item> is one of the following:"; 87 or type help <item>' where <item> is one of the following:";
88 88
89 /// <value> 89 /// <value>
@@ -115,12 +115,14 @@ namespace OpenSim.Framework.Console
115 { 115 {
116 help.Add(""); // Will become a newline. 116 help.Add(""); // Will become a newline.
117 help.Add(GeneralHelpText); 117 help.Add(GeneralHelpText);
118 help.Add(ItemHelpText); 118 help.AddRange(CollectAllCommandsHelp());
119 help.AddRange(CollectModulesHelp(tree));
120 } 119 }
121 else if (helpParts.Count == 1 && helpParts[0] == "all") 120 else if (helpParts.Count == 1 && helpParts[0] == "categories")
122 { 121 {
123 help.AddRange(CollectAllCommandsHelp()); 122 help.Add(""); // Will become a newline.
123 help.Add(GeneralHelpText);
124 help.Add(ItemHelpText);
125 help.AddRange(CollectModulesHelp(tree));
124 } 126 }
125 else 127 else
126 { 128 {
@@ -142,8 +144,11 @@ namespace OpenSim.Framework.Console
142 { 144 {
143 foreach (List<CommandInfo> commands in m_modulesCommands.Values) 145 foreach (List<CommandInfo> commands in m_modulesCommands.Values)
144 { 146 {
145 var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help)); 147 foreach (CommandInfo c in commands)
146 help.AddRange(ourHelpText); 148 {
149 if (c.long_help != String.Empty)
150 help.Add(string.Format("{0} - {1}", c.help_text, c.long_help));
151 }
147 } 152 }
148 } 153 }
149 154