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 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user