The approach to setting a handler for a command have changed in the most recent version of System.CommandLine (2.0.0-beta4.22272.1)