diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
commit | 304437b834e8c87687f68333ae67a13ee1377a73 (patch) | |
tree | 51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/DSALib/Commands/Help.cs | |
parent | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff) |
Adjust Codestyle
Diffstat (limited to 'dsa/DSALib/Commands/Help.cs')
-rw-r--r-- | dsa/DSALib/Commands/Help.cs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/dsa/DSALib/Commands/Help.cs b/dsa/DSALib/Commands/Help.cs index 4506821..b81a9ba 100644 --- a/dsa/DSALib/Commands/Help.cs +++ b/dsa/DSALib/Commands/Help.cs @@ -2,26 +2,21 @@ using DSALib.Auxiliary; using DSALib.DSA_Game.Save; -namespace DSALib.Commands -{ - public class Help - { +namespace DSALib.Commands { + public class Help { //public static List<CommandInfo> Commands { get; } = new List<CommandInfo>(); - public static string Get_Specific_Help(string command) - { + public static string Get_Specific_Help(string command) { // return command specific help var com = Properties.CommandInfos .OrderBy(x => SpellCorrect.Compare(x.Name, command.ToLower())).Last(); // get best fit command return com.GetDescription(); } - public static string Get_Generic_Help() - { + public static string Get_Generic_Help() { var res = ""; - foreach (var com in Properties.CommandInfos) - { + foreach (var com in Properties.CommandInfos) { var first_column_width = 8; res += ("!" + com.Name + ": ").AddSpaces(first_column_width) + com.Brief; @@ -35,8 +30,7 @@ namespace DSALib.Commands return res; } - public static string ShowHelp(params string[] commandList) - { + public static string ShowHelp(params string[] commandList) { var command = ""; if (commandList.Length > 0) command = commandList.Aggregate((s, c) => s + " " + c); |