mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
If a command has descriptive help, add a line above and below the print out for readability
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user