mirror of
https://github.com/realworldocaml/book.git
synced 2026-08-02 13:27:27 +08:00
update to cmdliner 1.1.0 api
This commit is contained in:
parent
b64b11ab70
commit
6b127d54c2
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user