mirror of
https://github.com/R-YaTian/TinkeDSi.git
synced 2025-06-18 16:45:43 -04:00
Try again...
This commit is contained in:
parent
0205c320ee
commit
ffc7347d80
@ -135,7 +135,9 @@ namespace Tinke
|
||||
Console.WriteLine();
|
||||
}
|
||||
Parser.Default.ParseArguments<ExtractOptions, ReplaceOptions, OpenOptions>(args)
|
||||
.WithParsed(HandleArgs)
|
||||
.WithParsed<ExtractOptions>(RunExtract)
|
||||
.WithParsed<ReplaceOptions>(RunReplace)
|
||||
.WithParsed<OpenOptions>(RunOpen)
|
||||
.WithNotParsed(HandleErrors);
|
||||
if (Type.GetType("Mono.Runtime") == null && curCommand == 0)
|
||||
{
|
||||
@ -191,22 +193,6 @@ namespace Tinke
|
||||
bIsFolder = opts.IsFolder;
|
||||
}
|
||||
|
||||
private static void HandleArgs(object obj)
|
||||
{
|
||||
switch (obj)
|
||||
{
|
||||
case ExtractOptions e:
|
||||
RunExtract(e);
|
||||
break;
|
||||
case ReplaceOptions p:
|
||||
RunReplace(p);
|
||||
break;
|
||||
case OpenOptions o:
|
||||
RunOpen(o);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private static void HandleErrors(IEnumerable<Error> obj)
|
||||
{
|
||||
curCommand = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user