aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Commandline.ml
diff options
context:
space:
mode:
Diffstat (limited to 'driver/Commandline.ml')
-rw-r--r--driver/Commandline.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/Commandline.ml b/driver/Commandline.ml
index d125736a..ce5acf9d 100644
--- a/driver/Commandline.ml
+++ b/driver/Commandline.ml
@@ -32,6 +32,8 @@ type action =
| Self of (string -> unit)
| String of (string -> unit)
| Integer of (int -> unit)
+ | Ignore
+ | Unit of (unit -> unit)
let match_pattern text = function
| Exact s ->
@@ -96,6 +98,8 @@ let parse_array spec argv first last =
end else begin
eprintf "Option `%s' expects an argument\n" s; exit 2
end
+ | Some (Ignore) -> parse (i+1)
+ | Some (Unit f) -> f (); parse (i+1)
end
in parse first