wabbajack/Wabbajack.CLI/Program.cs
Timothy Baldridge aa85c0dc8c We have a CLI
2020-01-31 15:38:56 -07:00

19 lines
452 B
C#

using System;
using CommandLine;
using Wabbajack.CLI.Verbs;
namespace Wabbajack.CLI
{
class Program
{
static int Main(string[] args)
{
return CommandLine.Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
.MapResult(
(Encrypt opts) => Encrypt.Run(opts),
(Decrypt opts) => Decrypt.Run(opts),
errs => 1);
}
}
}