]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaclean.ml
Use of standard OCaml syntax
[helm.git] / matita / matita / matitaclean.ml
index 883aa3976196c8d55278a4e82f4d8cbcecb9aece..7c0bc4d3c00d1dff30e868c363b422ea47d96f68 100644 (file)
@@ -114,9 +114,9 @@ let remove_all_items items =
            end *)
 *)
 
-let main () =
+let main_clean () =
   let _ = MatitaInit.initialize_all () in
-  if not (Helm_registry.get_bool "matita.verbose") then MatitaMisc.shutup ();
+  if not (Helm_registry.get_bool "matita.verbose") then MatitaMiscCli.shutup ();
   match Helm_registry.get_list Helm_registry.string "matita.args" with
     | [ "all" ] -> clean_all (); exit 0
     | []        -> 
@@ -124,3 +124,9 @@ let main () =
        remove_all_items items
     | items     ->     
        remove_all_items items
+
+let main () =
+  Sys.catch_break true;
+  main_clean ()
+
+let _ = main ()