bool TryGetCommand(string[] flags, out CommandBase command) { command = null; if (flags.Length > 0) { if (CommandItems.TryGetCommand(flags, out command)) { return(true); } consoleInteraction.ShowFaultyInput(); } return(false); }