Barry Giles
Barry Giles
This caught me out as well. I ended up wrapping up the `HelpAction` in an `AsynchronousCliAction` and setting it using the action property on the command. I don't love this...
This seems problematic. `THandler` will be of type `CliAction`, from which both `SynchronousCliAction` and `AsynchronousCliAction` derive, but the method only refers to `AsynchronousCliAction.InvokeAsync`. https://github.com/dotnet/command-line-api/blob/5ea97af07263ea3ef68a18557c8aa3f7e3200bda/src/System.CommandLine.Hosting/HostingExtensions.cs#L60-L66
I've just run into this as well. I've been unable to get injection of ILogger working though. I can get ILoggerFactory injected by re-registering through ` services.AddSingleton(); ` I tried...
I suppose I could just take the logic that was in the BinderBase derived class and move it to any old class, and invoke it in the SetAction lambda to...