I don't see how to handle global options with the new 2.0 API.
var cmd = //... some Command, the RootCommand is somewhere else created, not accessible here
var arg = new Argument<string>("x", "Mysterious x");
cmd.SetHandler(async (string x) =>
{
await DoSomething(x);
},
someArgument);`
Question: How to access/fill global options in this case?
I don't see how to handle global options with the new 2.0 API.
Question: How to access/fill global options in this case?