using Spectre.Console.Cli; using UIXC.Commands; namespace UIXC; internal class Program { static int Main(string[] args) { var app = new CommandApp(); app.Configure(config => { config.AddCommand("compile") .WithAlias("c") .WithDescription("Compiles the given source to UIB."); config.AddCommand("decompile") .WithAlias("d") .WithDescription("Decompiles the given compiled UIX to a source language."); config.AddCommand("debug") .WithAlias("dbg") .WithDescription("Starts an Iris debugger client."); config.AddCommand("resx") .WithDescription("Generates a RESX file compatible with the CLR DLL resource loader."); #if DEBUG config.PropagateExceptions(); config.ValidateExamples(); #endif }); return app.Run(args); } }