Skip to content

Commit

Permalink
Update cmdliner
Browse files Browse the repository at this point in the history
  • Loading branch information
moyodiallo committed Oct 17, 2023
1 parent 327dc23 commit 62d8ecb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
current_git
fmt
lwt
cmdliner
(cmdliner (>= 1.2.0))
(ocaml (>= 4.08.0))))
2 changes: 1 addition & 1 deletion example.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ depends: [
"current_git"
"fmt"
"lwt"
"cmdliner"
"cmdliner" {>= "1.2.0"}
"ocaml" {>= "4.08.0"}
]
build: [
Expand Down
6 changes: 3 additions & 3 deletions src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let repo =

let cmd =
let doc = "an OCurrent pipeline" in
Term.(term_result (const main $ Current.Config.cmdliner $ Current_web.cmdliner $ repo)),
Term.info program_name ~doc
let info = Cmd.info program_name ~doc in
Cmd.v info Term.(term_result (const main $ Current.Config.cmdliner $ Current_web.cmdliner $ repo))

let () = Term.(exit @@ eval cmd)
let () = exit (Cmd.eval cmd)

0 comments on commit 62d8ecb

Please sign in to comment.