File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ let main =
9191 let t = Cmdliner.Term. (const f $ Cmd_arg. options) in
9292 Cmdliner.Cmd. v Cmd_arg. info t
9393
94- let (_ : int ) =
94+ let exit_code =
9595 try Cmdliner.Cmd. eval ~catch: false ~argv: Sys. argv main with
9696 | (Match_failure _ | Assert_failure _ | Not_found ) as exc ->
9797 let backtrace = Printexc. get_backtrace () in
@@ -108,3 +108,5 @@ let (_ : int) =
108108 | exc ->
109109 Format. eprintf " %s: Error: %s@." Sys. argv.(0 ) (Printexc. to_string exc);
110110 exit 1
111+
112+ let () = exit exit_code
Original file line number Diff line number Diff line change 1919
2020open Js_of_ocaml_compiler.Stdlib
2121
22- let (_ : int ) =
22+ let exit_code =
2323 try Cmdliner.Cmd. eval ~catch: false ~argv: Sys. argv Link_wasm. command with
2424 | (Match_failure _ | Assert_failure _ | Not_found ) as exc ->
2525 let backtrace = Printexc. get_backtrace () in
@@ -36,3 +36,5 @@ let (_ : int) =
3636 | exc ->
3737 Format. eprintf " %s: Error: %s@." Sys. argv.(0 ) (Printexc. to_string exc);
3838 exit 1
39+
40+ let () = exit exit_code
Original file line number Diff line number Diff line change 2323 ( ppxlib ( >= 0 .35) )
2424 ( ocaml-compiler-libs ( >= v0.12.4) )
2525 ( re :with -test)
26- ( cmdliner ( >= 1 .1 .0) )
26+ ( cmdliner ( >= 2 .0) )
2727 ( sedlex ( >= 3 .3) )
2828 ( qcheck :with -test)
2929 menhir
143143 ( ppx_expect ( and ( >= v0.14.2) :with -test) )
144144 ( ppxlib ( >= 0 .35) )
145145 ( re :with -test)
146- ( cmdliner ( >= 1 .1 .0) )
146+ ( cmdliner ( >= 2 .0) )
147147 ( opam-format :with -test)
148148 ( sedlex ( >= 2 .3) )
149149 menhir
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ depends: [
1919 "ppxlib" {>= "0.35"}
2020 "ocaml-compiler-libs" {>= "v0.12.4"}
2121 "re" {with-test}
22- "cmdliner" {>= "1.1 .0"}
22+ "cmdliner" {>= "2 .0"}
2323 "sedlex" {>= "3.3"}
2424 "qcheck" {with-test}
2525 "menhir"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ depends: [
1919 "ppx_expect" {>= "v0.14.2" & with-test}
2020 "ppxlib" {>= "0.35"}
2121 "re" {with-test}
22- "cmdliner" {>= "1.1 .0"}
22+ "cmdliner" {>= "2 .0"}
2323 "opam-format" {with-test}
2424 "sedlex" {>= "2.3"}
2525 "menhir"
You can’t perform that action at this time.
0 commit comments