]> matita.cs.unibo.it Git - helm.git/commitdiff
added --version to allow help2man
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 15 Nov 2007 13:22:41 +0000 (13:22 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 15 Nov 2007 13:22:41 +0000 (13:22 +0000)
helm/software/matita/matitaInit.ml

index 44b09b5aea9da662033158ceea485970767ef158..6ef5a3bc4a0874e722ec638abe6e37dcbac96bc2 100644 (file)
@@ -239,6 +239,8 @@ let parse_cmdline init_status =
     let reduce_verbosity () =
       Helm_registry.set_int "matita.verbosity"
         (Helm_registry.get_int "matita.verbosity" - 1) in
+    let print_version () =
+            Printf.printf "%s\n" BuildTimeConf.version;exit 0 in
     let increase_verbosity () =
       Helm_registry.set_int "matita.verbosity"
         (Helm_registry.get_int "matita.verbosity" + 1) in
@@ -272,6 +274,7 @@ let parse_cmdline init_status =
             ("Act on the system library instead of the user one"
              ^ "\n    WARNING: not for the casual user");
         "-v", Arg.Unit increase_verbosity, "Increase verbosity";
+        "--version", Arg.Unit print_version, "Prints version";
       ] in
       let debug_arg_spec =
         if BuildTimeConf.debug then