From b0f264401180826a8da1b04b06163cb85c0bda00 Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Sun, 20 Nov 2022 19:10:39 +0000 Subject: [PATCH] Revert "update to cmdliner >=1.1.0" --- bin/opam2web.ml | 9 +++++---- opam2web.opam | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/opam2web.ml b/bin/opam2web.ml index 0eb3701..e7fc7bb 100644 --- a/bin/opam2web.ml +++ b/bin/opam2web.ml @@ -250,9 +250,9 @@ let default_cmd = ~docv:"REPOSITORY" ~doc:"Directories containing the repositories to consider") in - Term.(const build $ log_files $ out_dir $ content_dir + Term.(pure build $ log_files $ out_dir $ content_dir $ repositories_arg $ root_uri $ blog_source_uri), - Cmd.info "opam2web" ~version ~doc ~man + Term.info "opam2web" ~version ~doc ~man let () = OpamFormatConfig.init (); @@ -260,5 +260,6 @@ let () = OpamRepositoryConfig.init (); OpamSolverConfig.init (); OpamStateConfig.init (); - let t, info = default_cmd in - exit (Cmd.eval (Cmd.v info t)) + match Term.eval default_cmd with + | `Error _ -> exit 1 + | _ -> exit 0 diff --git a/opam2web.opam b/opam2web.opam index b20514b..09500df 100644 --- a/opam2web.opam +++ b/opam2web.opam @@ -21,7 +21,7 @@ depends: [ "cohttp-lwt-unix" "yojson" {>= "1.6.0"} "opam-file-format" {< "2.1.1"} - "cmdliner" {>= "1.1.0"} + "cmdliner" {>= "1.0.4"} "omd" {>= "1.3.1" & < "2.0.0~"} ] build: [