mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Small refactoring. Finally made use of the type parameter in NadekoTypeReader<T> class
This commit is contained in:
@@ -17,8 +17,8 @@ public static class OptionsParser
|
||||
x.HelpWriter = null;
|
||||
});
|
||||
var res = p.ParseArguments<T>(args);
|
||||
options = res.MapResult(x => x, _ => options);
|
||||
options.NormalizeOptions();
|
||||
return (options, res.Tag == ParserResultType.Parsed);
|
||||
var output = res.MapResult(x => x, _ => options);
|
||||
output.NormalizeOptions();
|
||||
return (output, res.Tag == ParserResultType.Parsed);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user