public static void ShowHelp(string commandName) { if (string.IsNullOrEmpty(commandName)) { CommandInfo[] commands = GetAllCommands(); foreach (CommandInfo commandInfo in commands) { commandInfo.DisplayUsage(); } } else { CommandInfo command = FindCommand(commandName); command.DisplayHelpInformation(); } }