diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/InterfaceCommander')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs b/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs index b5a4005..63dbb19 100644 --- a/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs +++ b/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs | |||
@@ -41,34 +41,34 @@ namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | |||
41 | public class Commander : ICommander | 41 | public class Commander : ICommander |
42 | { | 42 | { |
43 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 43 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
44 | 44 | ||
45 | /// <value> | 45 | /// <value> |
46 | /// Used in runtime class generation | 46 | /// Used in runtime class generation |
47 | /// </summary> | 47 | /// </summary> |
48 | private string m_generatedApiClassName; | 48 | private string m_generatedApiClassName; |
49 | 49 | ||
50 | public string Name | 50 | public string Name |
51 | { | 51 | { |
52 | get { return m_name; } | 52 | get { return m_name; } |
53 | } | 53 | } |
54 | private string m_name; | 54 | private string m_name; |
55 | 55 | ||
56 | public string Help | 56 | public string Help |
57 | { | 57 | { |
58 | get | 58 | get |
59 | { | 59 | { |
60 | StringBuilder sb = new StringBuilder(); | 60 | StringBuilder sb = new StringBuilder(); |
61 | 61 | ||
62 | sb.AppendLine("=== " + m_name + " ==="); | 62 | sb.AppendLine("=== " + m_name + " ==="); |
63 | 63 | ||
64 | foreach (ICommand com in m_commands.Values) | 64 | foreach (ICommand com in m_commands.Values) |
65 | { | 65 | { |
66 | sb.AppendLine("* " + Name + " " + com.Name + " - " + com.Help); | 66 | sb.AppendLine("* " + Name + " " + com.Name + " - " + com.Help); |
67 | } | 67 | } |
68 | 68 | ||
69 | return sb.ToString(); | 69 | return sb.ToString(); |
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | /// <summary> | 73 | /// <summary> |
74 | /// Constructor | 74 | /// Constructor |
@@ -78,7 +78,7 @@ namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | |||
78 | { | 78 | { |
79 | m_name = name; | 79 | m_name = name; |
80 | m_generatedApiClassName = m_name[0].ToString().ToUpper(); | 80 | m_generatedApiClassName = m_name[0].ToString().ToUpper(); |
81 | 81 | ||
82 | if (m_name.Length > 1) | 82 | if (m_name.Length > 1) |
83 | m_generatedApiClassName += m_name.Substring(1); | 83 | m_generatedApiClassName += m_name.Substring(1); |
84 | } | 84 | } |
@@ -87,7 +87,7 @@ namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | |||
87 | { | 87 | { |
88 | get { return m_commands; } | 88 | get { return m_commands; } |
89 | } | 89 | } |
90 | private Dictionary<string, ICommand> m_commands = new Dictionary<string, ICommand>(); | 90 | private Dictionary<string, ICommand> m_commands = new Dictionary<string, ICommand>(); |
91 | 91 | ||
92 | #region ICommander Members | 92 | #region ICommander Members |
93 | 93 | ||
@@ -162,7 +162,7 @@ namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | |||
162 | { | 162 | { |
163 | if (function != "help") | 163 | if (function != "help") |
164 | Console.WriteLine("ERROR: Invalid command - No such command exists"); | 164 | Console.WriteLine("ERROR: Invalid command - No such command exists"); |
165 | 165 | ||
166 | Console.Write(Help); | 166 | Console.Write(Help); |
167 | } | 167 | } |
168 | } | 168 | } |