aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/CommandConsole.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-05-28 20:51:02 +0100
committerJustin Clark-Casey (justincc)2010-05-28 20:51:02 +0100
commit3c0f34bc2be6bf692b498a92ffb4c0b338b9e4bd (patch)
tree3e1c1494b0d40e06fdf5f19f0e8a2c41baf093ac /OpenSim/Framework/Console/CommandConsole.cs
parentminor: remove mono compiler warning (diff)
downloadopensim-SC-3c0f34bc2be6bf692b498a92ffb4c0b338b9e4bd.zip
opensim-SC-3c0f34bc2be6bf692b498a92ffb4c0b338b9e4bd.tar.gz
opensim-SC-3c0f34bc2be6bf692b498a92ffb4c0b338b9e4bd.tar.bz2
opensim-SC-3c0f34bc2be6bf692b498a92ffb4c0b338b9e4bd.tar.xz
If a command has descriptive help, add a line above and below the print out for readability
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Console/CommandConsole.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs
index 2008613..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 {