How to execute a F# script with argument
My test script is
[]
let main(args: string[]) =
printfn "Main was called!"
args |> Array.iter (printfn "Arg: %s")
0
I preferably would like to do this with Util.Compile and Run, but the args never print.
I also tried lprun but I also get no args.
How ?
Answers
-
NOTE: there was an entrypoint attribute on that function, which got stripped on post.