using CommandLine; class Program { static string? ReadLine(string prompt = "") { Console.Write(prompt); string result = ""; int input; while (true) { input = Console.Read(); if (input == 13) return result.Length > 0 ? result : null; result += (char)input; } } static void Main() { Console.Title = "Example CLI"; string? input; Dictionary args; while (true) { input = ReadLine(">>> "); if (input == null) { Console.WriteLine(); continue; } args = CLI.ArgParser(input.Split(' '), ["echo", "close"]); Console.Write($"You wrote:\n[{string.Join(", ", args)}]" + "\n"); } } }