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."); #if DEBUG config.PropagateExceptions(); config.ValidateExamples(); #endif }); return app.Run(args); } }