If a command has descriptive help, add a line above and below the print out for readability

soprefactor
Justin Clark-Casey (justincc) 2010-05-28 20:51:02 +01:00
parent 2e2f73bdd5
commit 3c0f34bc2b
1 changed files with 10 additions and 0 deletions

View File

@ -141,7 +141,17 @@ namespace OpenSim.Framework.Console
CommandInfo commandInfo = (CommandInfo)dict[String.Empty];
help.Add(commandInfo.help_text);
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);
if (descriptiveHelp != string.Empty)
help.Add(string.Empty);
}
else
{