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 main =
let doc = "Pre-process markdown files to produce OCaml code." in let doc = "Pre-process markdown files to produce OCaml code." in
let exits = Term.default_exits in let exits = Cmd.Exit.defaults in
Term.(const run $ file $ output $ out_type), let term = Term.(const run $ file $ output $ out_type) in
Term.info "output" ~doc ~exits Cmd.(v (info "output"~doc ~exits) term)
(* Term.(ret (const main $ Cli.setup)), *)
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 async
atdgen atdgen
base base
cmdliner (cmdliner (>= 1.1.0))
cohttp-async cohttp-async
conf-ncurses conf-ncurses
conf-tzdata conf-tzdata

View File

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