private void ShowHelp(string args) { Console.WriteLine("Available commands:"); const int pageSize = 8; int commandCount = _commandRegistry.CommandCount; int counter = 0; foreach (CommandInfo commandInfo in _commandRegistry.Enumerate()) { Console.WriteLine(@$ " {commandInfo.Name} {commandInfo.ArgumentsDescription} {commandInfo.Description}"); ++counter; if (counter % pageSize == 0 && counter < commandCount) { Console.WriteLine(@$ " {counter}/{commandCount} command(s) shown. [C]ontinue or [S]top.");