diff options
author | Melanie | 2012-11-23 03:20:15 +0100 |
---|---|---|
committer | Melanie | 2012-11-23 03:20:15 +0100 |
commit | 658109700125f74b72dc1d1990e5713f06ee538e (patch) | |
tree | a192de729593d647554d83e0f9ca0726372bb244 /OpenSim/Framework | |
parent | Remove duplicate registration of the help topics for the module commander (diff) | |
download | opensim-SC_OLD-658109700125f74b72dc1d1990e5713f06ee538e.zip opensim-SC_OLD-658109700125f74b72dc1d1990e5713f06ee538e.tar.gz opensim-SC_OLD-658109700125f74b72dc1d1990e5713f06ee538e.tar.bz2 opensim-SC_OLD-658109700125f74b72dc1d1990e5713f06ee538e.tar.xz |
Fix new command console code to match the output of the original while keeping
the new features
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Console/CommandConsole.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs index 106b406..d703d78 100644 --- a/OpenSim/Framework/Console/CommandConsole.cs +++ b/OpenSim/Framework/Console/CommandConsole.cs | |||
@@ -144,8 +144,11 @@ namespace OpenSim.Framework.Console | |||
144 | { | 144 | { |
145 | foreach (List<CommandInfo> commands in m_modulesCommands.Values) | 145 | foreach (List<CommandInfo> commands in m_modulesCommands.Values) |
146 | { | 146 | { |
147 | var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help)); | 147 | foreach (CommandInfo c in commands) |
148 | help.AddRange(ourHelpText); | 148 | { |
149 | if (c.long_help != String.Empty) | ||
150 | help.Add(string.Format("{0} - {1}", c.help_text, c.long_help)); | ||
151 | } | ||
149 | } | 152 | } |
150 | } | 153 | } |
151 | 154 | ||