Merge pull request 'Fix cmdliner deprecations' (#4) from 20220221_fix_cmdliner_deprecations into main

Reviewed-on: https://git.robur.io/robur/opam-graph/pulls/4
This commit is contained in:
rand 2022-03-16 11:06:09 +00:00
commit 7a8ca76c90
2 changed files with 5 additions and 4 deletions

View file

@ -62,7 +62,8 @@ let file =
Arg.(required & pos 0 (some file) None & info [ ] ~doc ~docv:"FILE")
let cmd =
Term.(const jump $ setup_log $ transitive $ file $ output_format),
Term.info "opam_graph" ~version:"%%VERSION%%"
let term = Term.(const jump $ setup_log $ transitive $ file $ output_format) in
let info = Cmd.info "opam_graph" ~version:"%%VERSION%%" in
Cmd.v info term
let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = Cmd.eval cmd |> exit

View file

@ -9,7 +9,7 @@ license: "ISC"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.0.0"}
"cmdliner"
"cmdliner" {>= "1.1.0"}
"fmt" {>= "0.8.7"}
"logs"
"opam-core"