Is it possible to directly bind command line input to NodaTime.Duration (or System.TimeSpan) using System.CommandLine? Maybe by supplying a custom converter somewhere?
static void Main(string[] args)
{
var rootCommand = new RootCommand
{
new Option<Duration>("--my-duration"),
};
rootCommand.Handler = CommandHandler.Create(
(Duration myDuration) => { Console.WriteLine(myDuration); });
rootCommand.InvokeAsync(args);
}