summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/main_args.ml8
-rw-r--r--driver/main_args.mli2
2 files changed, 10 insertions, 0 deletions
diff --git a/driver/main_args.ml b/driver/main_args.ml
index 326c63e82..968fe82af 100644
--- a/driver/main_args.ml
+++ b/driver/main_args.ml
@@ -217,6 +217,10 @@ let mk_S f =
"-S", Arg.Unit f, " Keep intermediate assembly file"
;;
+let mk_stdin f =
+ "-stdin", Arg.Unit f, " Read script from standard input"
+;;
+
let mk_strict_sequence f =
"-strict-sequence", Arg.Unit f,
" Left-hand part of a sequence must have type unit"
@@ -449,6 +453,7 @@ module type Bytetop_options = sig
val _nostdlib : unit -> unit
val _principal : unit -> unit
val _rectypes : unit -> unit
+ val _stdin: unit -> unit
val _strict_sequence : unit -> unit
val _unsafe : unit -> unit
val _version : unit -> unit
@@ -549,6 +554,7 @@ module type Opttop_options = sig
val _principal : unit -> unit
val _rectypes : unit -> unit
val _S : unit -> unit
+ val _stdin : unit -> unit
val _strict_sequence : unit -> unit
val _unsafe : unit -> unit
val _version : unit -> unit
@@ -661,6 +667,7 @@ struct
mk_nostdlib F._nostdlib;
mk_principal F._principal;
mk_rectypes F._rectypes;
+ mk_stdin F._stdin;
mk_strict_sequence F._strict_sequence;
mk_unsafe F._unsafe;
mk_version F._version;
@@ -766,6 +773,7 @@ module Make_opttop_options (F : Opttop_options) = struct
mk_principal F._principal;
mk_rectypes F._rectypes;
mk_S F._S;
+ mk_stdin F._stdin;
mk_strict_sequence F._strict_sequence;
mk_unsafe F._unsafe;
mk_version F._version;
diff --git a/driver/main_args.mli b/driver/main_args.mli
index ff284a985..2249ab20c 100644
--- a/driver/main_args.mli
+++ b/driver/main_args.mli
@@ -83,6 +83,7 @@ module type Bytetop_options = sig
val _nostdlib : unit -> unit
val _principal : unit -> unit
val _rectypes : unit -> unit
+ val _stdin : unit -> unit
val _strict_sequence : unit -> unit
val _unsafe : unit -> unit
val _version : unit -> unit
@@ -183,6 +184,7 @@ module type Opttop_options = sig
val _principal : unit -> unit
val _rectypes : unit -> unit
val _S : unit -> unit
+ val _stdin : unit -> unit
val _strict_sequence : unit -> unit
val _unsafe : unit -> unit
val _version : unit -> unit