MapResult Usage with async methods
I'm using it CommandLineParser from and async Task Main method.
I would like to use verbs, so I would use the recommended syntax:
CommandLine.Parser.Default.ParseArguments<Options1, Options2, Options3>(args)
.MapResult(
(Options1opts) => Method1(opts),
(Options2opts) => Method2(opts),
(Options3opts) => Method2(opts),
errs => 1);
But in my case, the methods are async. Howo do I use the MapResult in this scenario?
The same problem occurs with the WithParsed methods.
Thanks!