mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Code cleanup
This commit is contained in:
parent
672be2e7d0
commit
e5b0e87bd0
@ -5,8 +5,7 @@ namespace Wabbajack.CLI
|
||||
{
|
||||
public class OptionsDefinition
|
||||
{
|
||||
public static Type[] AllOptions = new[]
|
||||
{
|
||||
public static Type[] AllOptions = {
|
||||
typeof(OptionsDefinition), typeof(Encrypt), typeof(Decrypt)
|
||||
};
|
||||
}
|
||||
|
@ -1,17 +1,17 @@
|
||||
using System;
|
||||
using CommandLine;
|
||||
using CommandLine;
|
||||
using Wabbajack.CLI.Verbs;
|
||||
|
||||
namespace Wabbajack.CLI
|
||||
{
|
||||
class Program
|
||||
public class Program
|
||||
{
|
||||
static int Main(string[] args)
|
||||
private static int Main(string[] args)
|
||||
{
|
||||
return CommandLine.Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
|
||||
return Parser.Default.ParseArguments(args, OptionsDefinition.AllOptions)
|
||||
.MapResult(
|
||||
(Encrypt opts) => Encrypt.Run(opts),
|
||||
(Decrypt opts) => Decrypt.Run(opts),
|
||||
(Validate opts) => Validate.Run(opts),
|
||||
errs => 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user