Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created December 8, 2017 00:35
Show Gist options
  • Save dustinlacewell-wk/5ee4679691e89434f35885216cdbca3c to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/5ee4679691e89434f35885216cdbca3c to your computer and use it in GitHub Desktop.
open Argu
[<EntryPoint>]
let main argv =
try
Args("fss", argv)
|> Client.json "post" @"{ ""foo"": ""bar"" }"
|> Client.send
|> printfn "%s"
with
| Failure(msg) -> printfn "Error: %s" msg
| :? ArguParseException as ex -> printfn "%s" ex.Message
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment