using CommandLine; using Builtins; class Program { static void RunCLI() { Console.Title = "Example CLI"; string? input; // Dictionary? args; Command? command; HelpCommand help = new(); EchoCommand echo = new(); CloseCommand close = new(); while (true) { Console.Write(">>> "); input = Console.ReadLine(); if (input == null) { Console.WriteLine(); continue; } CLI cli = new([help, echo, close]); command = cli.SingleArgParser(input.Split(' ')); if (command == null) { Console.WriteLine("Error occured when attempting to parse console input."); continue; } command.Callback(); } } static void Main() { // RunCLI(); Console.WriteLine(new EchoCommand().Docstring); } }