From 3add71ae9e63b0a3115303663ca4fe1be13f0036 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 9 Dec 2018 01:23:07 -0600 Subject: [PATCH] better help which is also for testing. --- .../CommandProcessor/TestCommand.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/RecrownedAthenaeum.ConsoleTools/CommandProcessor/TestCommand.cs b/RecrownedAthenaeum.ConsoleTools/CommandProcessor/TestCommand.cs index ce3630c..b7421bc 100644 --- a/RecrownedAthenaeum.ConsoleTools/CommandProcessor/TestCommand.cs +++ b/RecrownedAthenaeum.ConsoleTools/CommandProcessor/TestCommand.cs @@ -13,12 +13,20 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor public override string Help(string argument = null) { + switch (argument) + { + case null: + return "Test command. Meant for testing random stuff. Current arguments: \"-textWrap\".\n" + + "Its ironic that the help section is also meant to test things."; + case "-textWrap": + return "-textWrap prints a large amount of text to test the text wrap."; + } return "Test command."; } public override void Run(string[] arguments = null) { - if (arguments != null && arguments[0] == "-lb") + if (arguments != null && arguments[0] == "-textWrap") { ConsoleUtilities.WriteWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit.[here]\n Duis semper lacinia nisl, eget efficitur massa feugiat vel. Ut egestas elit id sollicitudin pellentesque.[here no space after break.]\nFusce ullamcorper nec turpis at aliquam. Donec cursus mi nec porttitor convallis. Nullam condimentum sollicitudin volutpat. Pellentesque tellus ligula, eleifend sit amet ante ac, accumsan volutpat lorem. Suspendisse potenti. Vestibulum at sodales ipsum. Mauris dignissim maximus purus sagittis elementum.", true); ConsoleUtilities.WriteWrapped("test");