templates/dotnet/HelloWorld/Program.fs
Smaug123 006a3efeec Basic .NET template
Conform to template submission guidelines
2023-01-09 22:38:47 +00:00

16 lines
392 B
FSharp

namespace HelloWorld
[<RequireQualifiedAccess>]
module Program =
let construct (name : string) : string = sprintf "Hello, %s!" name
[<EntryPoint>]
let main argv =
match argv |> Array.tryExactlyOne with
| Some name ->
printfn "%s" (construct name)
0
| None ->
eprintfn "Expected exactly one argument"
1