wabbajack/Wabbajack.CLI/Program.cs
2020-07-08 14:48:48 -06:00

22 lines
537 B
C#

using CommandLine;
using Wabbajack.CLI.Verbs;
using Wabbajack.Common;
using Console = System.Console;
using System.Reactive.Linq;
using System;
namespace Wabbajack.CLI
{
public class Program
{
private static int Main(string[] args)
{
Utils.LogMessages.Subscribe(Console.WriteLine);
return Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
.MapResult(
(AVerb opts) => opts.Execute(),
errs => 1);
}
}
}