aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--checker/checker.ml21
-rw-r--r--man/coqchk.137
2 files changed, 32 insertions, 26 deletions
diff --git a/checker/checker.ml b/checker/checker.ml
index 0c9d7e2dc..4bb5ab001 100644
--- a/checker/checker.ml
+++ b/checker/checker.ml
@@ -164,7 +164,7 @@ let version () =
let print_usage_channel co command =
output_string co command;
- output_string co "Coq options are:\n";
+ output_string co "coqchk options are:\n";
output_string co
" -I dir -as coqdir map physical dir to logical coqdir\
\n -I dir map directory dir to the empty logical path\
@@ -175,11 +175,11 @@ let print_usage_channel co command =
\n -admit module load module and dependencies without checking\
\n -norec module check module but admit dependencies without checking\
\n\
-\n -where print Coq's standard library location and exit\
-\n -v print Coq version and exit\
+\n -where print coqchk's standard library location and exit\
+\n -v print coqchk version and exit\
\n -boot boot mode\
\n -o, --output-context print the list of assumptions\
-\n -m, --memoty print the maximum heap size\
+\n -m, --memory print the maximum heap size\
\n -silent disable trace of constants being checked\
\n\
\n -impredicative-set set sort Set impredicative\
@@ -192,7 +192,7 @@ let print_usage_channel co command =
let print_usage = print_usage_channel stderr
let print_usage_coqtop () =
- print_usage "Usage: coqchk <options>\n\n"
+ print_usage "Usage: coqchk <options> modules\n\n"
let usage () =
print_usage_coqtop ();
@@ -282,8 +282,15 @@ let rec explain_exn = function
let parse_args argv =
let rec parse = function
| [] -> ()
- | "-impredicative-set" :: rem ->
- set_engagement Declarations.ImpredicativeSet; parse rem
+ | "-impredicative-set" :: rem ->
+ set_engagement Declarations.ImpredicativeSet; parse rem
+
+ | "-coqlib" :: s :: rem ->
+ if not (exists_dir s) then
+ (msgnl (str ("Directory '"^s^"' does not exist")); exit 1);
+ Flags.coqlib := s;
+ Flags.coqlib_spec := true;
+ parse rem
| ("-I"|"-include") :: d :: "-as" :: p :: rem -> set_include d p; parse rem
| ("-I"|"-include") :: d :: "-as" :: [] -> usage ()
diff --git a/man/coqchk.1 b/man/coqchk.1
index f51861f00..76a7cfc5d 100644
--- a/man/coqchk.1
+++ b/man/coqchk.1
@@ -1,7 +1,7 @@
-.TH COQ 1 "February 9, 2009"
+.TH COQ 1 "July 7, 201"
.SH NAME
-coqchk \- The Coq Proof Assistant compiled libraries verifier
+coqchk \- The Coq Proof Checker compiled libraries verifier
.SH SYNOPSIS
@@ -9,7 +9,7 @@ coqchk \- The Coq Proof Assistant compiled libraries verifier
[
.B options
]
-.I files-or-modules
+.I modules
.SH DESCRIPTION
@@ -21,10 +21,9 @@ information. It returns with exit code 0 if all the requested tasks
succeeded. A non-zero return code means that something went wrong: some
library was not found, corrupted content, type-checking failure, etc.
-.IR files-or-modules \&
-is a list of modules to be checked. Modules can be referred to either
-by a filename (without the .vo suffix) or by their (possibly
-qualified) module name.
+.IR modules \&
+is a list of modules to be checked. Modules can be referred to by a
+short or qualified name.
.SH OPTIONS
@@ -42,44 +41,44 @@ to logical
.I coqdir
.TP
-.BI \-where
-print Coq's standard library location and exit
-
-.TP
.BI \-silent
makes coqchk less verbose.
.TP
-.BI \-admit \ file-or-module
+.BI \-admit \ module
tag the specified module and all its dependencies as trusted, and will
not be rechecked, unless explicitly requested by other options.
.TP
-.BI \-norec \ file-or-module
+.BI \-norec \ module
specifies that the given module shall be verified without requesting
-to check its dependencies
+to check its dependencies.
.TP
.BI \-m,\ \-\-memory
-displays a summary of the memory used by the checker
+displays a summary of the memory used by the checker.
.TP
.BI \-o,\ \-\-output\-context
displays a summary of the logical content that have been
-verified: assumptions and usage of impredicativity
+verified: assumptions and usage of impredicativity.
.TP
.BI \-impredicative\-set
-allows the checker to verify libraries that have been compiled with
+allows the checker to accept libraries that have been compiled with
this flag.
.TP
.BI \-v
-print Coq version and exit
+print coqchk version and exit.
+
+.TP
+.BI \-coqlib \ dir
+overrides the default location of the standard library.
.TP
.BI \-where
-print Coq's standard library location and exit
+print coqchk standard library location and exit.
.TP
.BI \-h,\ \-\-help