diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-01-03 09:28:41 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-01-03 09:28:41 +0100 |
commit | 1278e187ddc2aa3623002b1af2dc402eb735eb16 (patch) | |
tree | 3f2fe8a8b83b5dc25bda513a462428af2d33d2db /driver/Commandline.mli | |
parent | 334be23a90a700f3b62806e1178603a28c6ba3bb (diff) | |
download | compcert-1278e187ddc2aa3623002b1af2dc402eb735eb16.tar.gz compcert-1278e187ddc2aa3623002b1af2dc402eb735eb16.zip |
PR#16: give option rules precedence over file pattern rules.
Plus: simplify handling of -help and --help.
Plus: error on unrecognized "-xxx" options so that "-foo.c" is not treated
as a source file.
Diffstat (limited to 'driver/Commandline.mli')
-rw-r--r-- | driver/Commandline.mli | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/Commandline.mli b/driver/Commandline.mli index 7a18905f..79786678 100644 --- a/driver/Commandline.mli +++ b/driver/Commandline.mli @@ -34,8 +34,7 @@ type action = | String of (string -> unit) (** read next arg as a string, call function *) | Integer of (int -> unit) (** read next arg as an int, call function *) -val parse_cmdline: - (pattern * action) list -> string (* usage string *) -> unit +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. *) |