Skip to content

Commit

Permalink
upgrade to cmdliner 1.1.0, add CHANGES
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Mar 16, 2022
1 parent 7901723 commit 20a06b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.0.6 (2022-03-16)

* upgrade to cmdliner 1.1.0 API (@hannesm)

## v0.0.5 (2021-10-30)

* remove rresult dependency (#6 @hannesm @reynir)
Expand Down
9 changes: 6 additions & 3 deletions app/hurl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ let meth =
Arg.(value & opt (some (enum ms)) None & info [ "method" ] ~doc ~docv:"METHOD")

let cmd =
Term.(term_result (const jump $ setup_log $ protocol $ uri $ meth $ header $ input $ output)),
Term.info "hurl" ~version:"%%VERSION_NUM%%"
let term =
Term.(term_result (const jump $ setup_log $ protocol $ uri $ meth $ header $ input $ output))
and info = Cmd.info "hurl" ~version:"%%VERSION_NUM%%"
in
Cmd.v info term

let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = exit (Cmd.eval cmd)
2 changes: 1 addition & 1 deletion http-lwt-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "BSD-3-clause"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.0.0"}
"cmdliner"
"cmdliner" {>= "1.1.0"}
"logs"
"lwt"
"base64" {>= "3.1.0"}
Expand Down

0 comments on commit 20a06b2

Please sign in to comment.