HostingAction for options handlers
Currently System.CommandLine.Hosting.HostingExtensions.UseHost set HostingAction wrapper for command and its subcommands actions. But, options can have also own actions and they are not wrapped with HostingAction
To my knowledge, Options in System.CommandLine do not feature actions. Actions (or handlers, as they were called in older System.CommandLine versions) are features of commands. Could you please clarify what exactly you mean by saying "options can have also own actions"?
(Side note: In case you aren't already aware, please consider reading this announcement: https://github.com/dotnet/command-line-api/issues/2338 and issue threads following this announcement.)
@elgonzo, there's the CliOption.Action property. It was added in https://github.com/dotnet/command-line-api/pull/2095 as Option.Action, largely intended for --help and --version.
@KalleOlaviNiemitalo thanks for the clarification!