diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/InterfaceCommander/Commander.cs')
-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 | } |