diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Console/CommandConsole.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs index 66f483c..b17dbc0 100644 --- a/OpenSim/Framework/Console/CommandConsole.cs +++ b/OpenSim/Framework/Console/CommandConsole.cs | |||
@@ -141,7 +141,17 @@ namespace OpenSim.Framework.Console | |||
141 | CommandInfo commandInfo = (CommandInfo)dict[String.Empty]; | 141 | CommandInfo commandInfo = (CommandInfo)dict[String.Empty]; |
142 | help.Add(commandInfo.help_text); | 142 | help.Add(commandInfo.help_text); |
143 | help.Add(commandInfo.long_help); | 143 | help.Add(commandInfo.long_help); |
144 | |||
145 | string descriptiveHelp = commandInfo.descriptive_help; | ||
146 | |||
147 | // If we do have some descriptive help then insert a spacing line before and after for readability. | ||
148 | if (descriptiveHelp != string.Empty) | ||
149 | help.Add(string.Empty); | ||
150 | |||
144 | help.Add(commandInfo.descriptive_help); | 151 | help.Add(commandInfo.descriptive_help); |
152 | |||
153 | if (descriptiveHelp != string.Empty) | ||
154 | help.Add(string.Empty); | ||
145 | } | 155 | } |
146 | else | 156 | else |
147 | { | 157 | { |
@@ -182,8 +192,7 @@ namespace OpenSim.Framework.Console | |||
182 | public void AddCommand(string module, bool shared, string command, | 192 | public void AddCommand(string module, bool shared, string command, |
183 | string help, string longhelp, CommandDelegate fn) | 193 | string help, string longhelp, CommandDelegate fn) |
184 | { | 194 | { |
185 | AddCommand(module, shared, command, help, longhelp, | 195 | AddCommand(module, shared, command, help, longhelp, String.Empty, fn); |
186 | String.Empty, fn); | ||
187 | } | 196 | } |
188 | 197 | ||
189 | /// <summary> | 198 | /// <summary> |