Hi, I'm trying to use it in F#:
module Program
open System.CommandLine
open System.CommandLine.Invocation;
open System
let [<EntryPoint>] main args =
let root = new RootCommand()
let option = new Option<string>("--test")
root.AddOption option
root.Handler <- CommandHandler.Create<string>(fun (test: string) -> Console.WriteLine test)
root.Invoke args
Handler is invoked, but test argument is null. What I'm doing wrong?
Hi, I'm trying to use it in F#:
Handler is invoked, but
testargument isnull. What I'm doing wrong?