update to cmdliner 1.1.0 api

This commit is contained in:
Anil Madhavapeddy 2022-04-18 17:02:19 +01:00
parent b64b11ab70
commit 6b127d54c2
3 changed files with 6 additions and 7 deletions

View File

@ -241,9 +241,8 @@ let out_type =
let main =
let doc = "Pre-process markdown files to produce OCaml code." in
let exits = Term.default_exits in
Term.(const run $ file $ output $ out_type),
Term.info "output" ~doc ~exits
(* Term.(ret (const main $ Cli.setup)), *)
let exits = Cmd.Exit.defaults in
let term = Term.(const run $ file $ output $ out_type) in
Cmd.(v (info "output"~doc ~exits) term)
let () = Term.(exit_status @@ eval main)
let () = exit @@ Cmd.eval' ~catch:false main

View File

@ -23,7 +23,7 @@ second edition book. See https://realworldocaml.org/")
async
atdgen
base
cmdliner
(cmdliner (>= 1.1.0))
cohttp-async
conf-ncurses
conf-tzdata

View File

@ -16,7 +16,7 @@ depends: [
"async"
"atdgen"
"base"
"cmdliner"
"cmdliner" {>= "1.1.0"}
"cohttp-async"
"conf-ncurses"
"conf-tzdata"