X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitaInit.ml;h=3291cbc330b5e41224302dc210a2fb3b341fbe55;hb=cd798346d31b14b8947e5801b87dc4f363607862;hp=aee55d60d0292f73d7261d0e3a1d3fb294f57567;hpb=916c558005ed665c62699a7a4c5347870c8a3efb;p=helm.git diff --git a/helm/software/matita/matitaInit.ml b/helm/software/matita/matitaInit.ml index aee55d60d..3291cbc33 100644 --- a/helm/software/matita/matitaInit.ml +++ b/helm/software/matita/matitaInit.ml @@ -25,10 +25,10 @@ (* $Id$ *) -type thingsToInitilaize = +type thingsToInitialize = ConfigurationFile | Db | Environment | Getter | CmdLine | Registry -exception FailedToInitialize of thingsToInitilaize +exception FailedToInitialize of thingsToInitialize let wants s l = List.iter ( @@ -54,6 +54,7 @@ let registry_defaults = [ "matita.do_heavy_checks", "true"; "matita.moo", "true"; "matita.extract", "false"; + "matita.execcomments", "false"; ] let set_registry_values = @@ -193,6 +194,7 @@ let parse_cmdline init_status = | _ -> raise (Failure "bad baseuri, use -b 'path::uri'") in let no_default_includes = ref false in + let execcomments = ref false in let arg_spec = let std_arg_spec = [ "-b", Arg.String set_baseuri, " forces the baseuri of path"; @@ -220,6 +222,8 @@ let parse_cmdline init_status = ^ "\n WARNING: not for the casual user"); "-no-default-includes", Arg.Set no_default_includes, "Do not include the default searched paths for the include command"; + "-execcomments", Arg.Set execcomments, + "Execute the content of (** ... *) comments"; "-v", Arg.Unit (fun () -> Helm_registry.set_bool "matita.verbose" true), "Verbose mode"; @@ -243,6 +247,7 @@ let parse_cmdline init_status = Helm_registry.set_list Helm_registry.of_string ~key ~value:l in Arg.parse arg_spec (add_l args) (usage ()); + Helm_registry.set_bool ~key:"matita.execcomments" ~value:!execcomments; let default_includes = if !no_default_includes then [] else default_includes in let includes = List.map (fun x -> HExtlib.normalize_path (absolutize x)) @@ -275,7 +280,8 @@ let other_components = let initialize_all () = status := List.fold_left (fun s f -> f s) !status - (conf_components @ other_components) + (conf_components @ other_components); + NCicLibrary.init () let parse_cmdline_and_configuration_file () = status := List.fold_left (fun s f -> f s) !status conf_components