aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Commandline.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-01-26 15:47:35 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2017-01-26 15:47:35 +0100
commit48aa7e9385ce265d51e8b75fb6e583c682201c54 (patch)
tree656460b11ac65e55c1417dd17f4059bf16787c75 /driver/Commandline.mli
parent141f8f8dfb7ed37ad5ad9eca568da86650f42a83 (diff)
downloadcompcert-48aa7e9385ce265d51e8b75fb6e583c682201c54.tar.gz
compcert-48aa7e9385ce265d51e8b75fb6e583c682201c54.zip
Added option -fmax-errors.
The option -fmax-errors limits the number of errors that are reported before the compilation is aborted. The default 0 means no limit. Bug 19872
Diffstat (limited to 'driver/Commandline.mli')
-rw-r--r--driver/Commandline.mli5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/Commandline.mli b/driver/Commandline.mli
index 197d0b04..65253749 100644
--- a/driver/Commandline.mli
+++ b/driver/Commandline.mli
@@ -40,3 +40,8 @@ val parse_cmdline: (pattern * action) list -> unit
(* Note on precedence: [Exact] patterns are tried first, then the other
patterns are tried in the order in which they appear in the list. *)
+
+val longopt_int: string -> (int -> unit) -> pattern * action
+(** [longopt_int key fn] generates a pattern and an action for
+ options of the form [key=<n>] and calls [fn] with the integer argument
+*)