in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Program.cs [12:32]
static void Main(string[] args)
{
Options options = null;
Parser.Default.ParseArguments<Options>(args)
.WithParsed<Options>(o =>
{
if (string.IsNullOrWhiteSpace(o.OutputFolder))
{
o.OutputFolder = Directory.GetCurrentDirectory();
}
options = o;
});
if (options == null)
{
throw new Exception("Program Options are undefined or missing.");
}
Generate(options);
}