using System; namespace Haiku { class Program { static void Main(string[] args) { Cli cli = new Cli(); cli.AddCommand(new Command { Name = "New", Description = "Create a new project.", Method = New }); cli.AddCommand(new Command { Name = "Build", Description = "Builds the project.", Method = Build }); cli.DefaultCommand(new Command { Name = "Help", Description = "Prints the Help text.", Method = Help }); cli.Parse(args); } public static void New() { Console.WriteLine("Creating a new project."); } public static void Build() { Console.WriteLine("Building this project."); } public static void Help() { Console.WriteLine("Help Text."); } } }