If a command has descriptive help, add a line above and below the print out for readability
parent
2e2f73bdd5
commit
3c0f34bc2b
|
@ -141,7 +141,17 @@ namespace OpenSim.Framework.Console
|
||||||
CommandInfo commandInfo = (CommandInfo)dict[String.Empty];
|
CommandInfo commandInfo = (CommandInfo)dict[String.Empty];
|
||||||
help.Add(commandInfo.help_text);
|
help.Add(commandInfo.help_text);
|
||||||
help.Add(commandInfo.long_help);
|
help.Add(commandInfo.long_help);
|
||||||
|
|
||||||
|
string descriptiveHelp = commandInfo.descriptive_help;
|
||||||
|
|
||||||
|
// If we do have some descriptive help then insert a spacing line before and after for readability.
|
||||||
|
if (descriptiveHelp != string.Empty)
|
||||||
|
help.Add(string.Empty);
|
||||||
|
|
||||||
help.Add(commandInfo.descriptive_help);
|
help.Add(commandInfo.descriptive_help);
|
||||||
|
|
||||||
|
if (descriptiveHelp != string.Empty)
|
||||||
|
help.Add(string.Empty);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue