in src/shared/CmdLineOptions.cs [39:57]
public static CmdLineOptions Parse(string[] args)
{
using var parser = new Parser(config =>
{
config.CaseSensitive = false;
config.AutoHelp = false;
config.AutoVersion = false;
config.IgnoreUnknownArguments = false;
});
var res = parser.ParseArguments(() => new CmdLineOptions(), args);
if (res is NotParsed<CmdLineOptions>)
throw new Exception("bad command line args");
var opts = (res as Parsed<CmdLineOptions>).Value;
return opts;
}