-
Notifications
You must be signed in to change notification settings - Fork 418
Closed
Description
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 argsHandler is invoked, but test argument is null. What I'm doing wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels