Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cmdliner #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
(description "A longer description")
(depends
(prometheus-app (>= 1.0))
(current (>= 0.3))
(current (>= 0.6))
current_web
current_git
fmt
lwt
cmdliner
(cmdliner (>= 1.2.0))
(ocaml (>= 4.08.0))))
4 changes: 2 additions & 2 deletions example.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ bug-reports: "https://github.com/ocurrent/ocurrent-skeleton/issues"
depends: [
"dune" {>= "1.11"}
"prometheus-app" {>= "1.0"}
"current" {>= "0.3"}
"current" {>= "0.6"}
"current_web"
"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)