private void ProcessReset(string[] command) { if (command.Length > 1 && !string.IsNullOrEmpty(command[1])) { switch (command[1]) { case "console": _commandPrompt.ResetConsole(); break; case "size": _commandPrompt.ResetConsoleSize(); break; case "theme": _commandPrompt.ResetStyleTheme(); break; case "clear": _commandPrompt.ClearConsole(); break; default: WriteToConsole( new ConsoleWriteLineEventArgs("Command argument [" + command[1] + "] not recognized: \r" + GetCommandEntry(command[0]))); break; } } else { WriteToConsole( new ConsoleWriteLineEventArgs("Missing argument for [" + command[0] + "]:\r" + GetCommandEntry(command[0]))); } }