Browse Source

Improve exiting code clarity

Leo 9 years ago
parent
commit
90090fc4da
2 changed files with 2 additions and 2 deletions
  1. 1 0
      src/command_def.ml
  2. 1 2
      src/oclaunch.ml

+ 1 - 0
src/command_def.ml

@@ -267,6 +267,7 @@ let run ~version ~build_info () =
     |> run ~version ~build_info
     |> run ~version ~build_info
   in
   in
 
 
+  (* Return error code with exceptions *)
   let exit_code =
   let exit_code =
     match
     match
       hack_parse ()
       hack_parse ()

+ 1 - 2
src/oclaunch.ml

@@ -47,6 +47,5 @@ let build_info = ( "Build with OCaml version " ^ (Sys.ocaml_version) ^ " on " ^
 
 
 let () =
 let () =
   Command_def.run ~version:version_number ~build_info:build_info ()
   Command_def.run ~version:version_number ~build_info:build_info ()
-  |> function
-    `Exit n -> exit n
+  |> function `Exit n -> exit n
 ;;
 ;;