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

support cmdliner 1.1.0 and above without deprecation #445

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions lwt/examples/echo_client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ let trust =
Arg.(value & opt (some string) None & info [ "trust" ] ~doc)

let cmd =
Term.(const jump $ setup_log $ port $ host $ trust),
Term.info "server" ~version:"%%VERSION_NUM%%"
let term = Term.(const jump $ setup_log $ port $ host $ trust)
and info = Cmd.info "server" ~version:"%%VERSION_NUM%%"
in
Cmd.v info term

let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = exit (Cmd.eval cmd)
8 changes: 5 additions & 3 deletions lwt/examples/echo_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ let port =
Arg.(value & opt int 4433 & info [ "port" ] ~doc)

let cmd =
Term.(ret (const echo_server $ setup_log $ port)),
Term.info "server" ~version:"%%VERSION_NUM%%"
let term = Term.(ret (const echo_server $ setup_log $ port))
and info = Cmd.info "server" ~version:"%%VERSION_NUM%%"
in
Cmd.v info term

let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = exit (Cmd.eval cmd)
8 changes: 5 additions & 3 deletions lwt/examples/fuzz_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ let port =
Arg.(value & opt int 4433 & info [ "port" ] ~doc)

let cmd =
Term.(ret (const jump $ setup_log $ port)),
Term.info "server" ~version:"%%VERSION_NUM%%"
let term = Term.(ret (const jump $ setup_log $ port))
and info = Cmd.info "server" ~version:"%%VERSION_NUM%%"
in
Cmd.v info term

let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = exit (Cmd.eval cmd)
8 changes: 5 additions & 3 deletions lwt/examples/test_client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ let jump _ =
open Cmdliner

let cmd =
Term.(ret (const jump $ setup_log)),
Term.info "test_client" ~version:"%%VERSION_NUM%%"
let term = Term.(ret (const jump $ setup_log))
and info = Cmd.info "test_client" ~version:"%%VERSION_NUM%%"
in
Cmd.v info term

let () = match Term.eval cmd with `Ok () -> exit 0 | _ -> exit 1
let () = exit (Cmd.eval cmd)
1 change: 1 addition & 0 deletions tls.opam
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ depends: [
"ipaddr-sexp"
"alcotest" {with-test}
"randomconv" {with-test}
"cmdliner" {dev & > "1.1.0"}
]
conflicts: [ "result" {< "1.5"} ]
tags: [ "org:mirage"]
Expand Down