wabbajack/Wabbajack.CLI/Program.cs

26 lines
900 B
C#
Raw Normal View History

2020-02-08 18:03:41 +00:00
using CommandLine;
2020-01-31 22:38:56 +00:00
using Wabbajack.CLI.Verbs;
namespace Wabbajack.CLI
{
2020-02-08 18:03:41 +00:00
public class Program
2020-01-31 22:38:56 +00:00
{
2020-02-08 18:03:41 +00:00
private static int Main(string[] args)
2020-01-31 22:38:56 +00:00
{
2020-02-08 18:03:41 +00:00
return Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
2020-01-31 22:38:56 +00:00
.MapResult(
(Encrypt opts) => opts.Execute(),
(Decrypt opts) => opts.Execute(),
(Validate opts) => opts.Execute(),
(DownloadUrl opts) => opts.Execute(),
(UpdateModlists opts) => opts.Execute(),
(UpdateNexusCache opts) => opts.Execute(),
2020-02-19 14:49:06 +00:00
(ChangeDownload opts) => opts.Execute(),
(ServerLog opts) => opts.Execute(),
(MyFiles opts) => opts.Execute(),
(DeleteFile opts) => opts.Execute(),
2020-01-31 22:38:56 +00:00
errs => 1);
}
}
}