Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fix lower bound compat with Cmdliner 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shonfeder authored and punchagan committed Sep 30, 2024
1 parent 0e83894 commit c6f883f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
open Cmdliner
open Opam_ci_check

(* This is Cmdliner.Term.map, which is not available in Cmdliner 1.1.1 *)
let map_term f x = Term.app (Term.const f) x

let to_exit_code : (unit, string) result Term.t -> Cmd.Exit.code Term.t =
Term.map @@ function
map_term @@ function
| Ok () -> 0
| Error msg ->
Printf.eprintf "%s%!" msg;
Expand Down

0 comments on commit c6f883f

Please sign in to comment.