public static IndexerParameters ParseCommandLine(IEnumerable <string> args) { ParserResult <IndexerParameters> res = Parser.Default.ParseArguments <IndexerParameters>(args); IndexerParameters result = res.MapResult(options => { return(options); }, errors => { return(null); }); return(result); }
public static string CreateCommandLine(IndexerParameters parameters) => UnParserExtensions.FormatCommandLine <IndexerParameters>(Parser.Default, parameters);