Files
ZuneUIXTools/UIXC/Program.cs
T

31 lines
727 B
C#

using Spectre.Console.Cli;
using UIXC.Commands;
namespace UIXC;
internal class Program
{
static int Main(string[] args)
{
var app = new CommandApp<CompileCommand>();
app.Configure(config =>
{
config.AddCommand<CompileCommand>("compile")
.WithAlias("c")
.WithDescription("Compiles the given source to UIB.");
config.AddCommand<DecompileCommand>("decompile")
.WithAlias("d")
.WithDescription("Decompiles the given compiled UIX to a source language.");
#if DEBUG
config.PropagateExceptions();
config.ValidateExamples();
#endif
});
return app.Run(args);
}
}