aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
Diffstat (limited to 'ide')
-rw-r--r--ide/idetop.ml9
1 files changed, 7 insertions, 2 deletions
diff --git a/ide/idetop.ml b/ide/idetop.ml
index f39c59f5d8..f79ad5deab 100644
--- a/ide/idetop.ml
+++ b/ide/idetop.ml
@@ -496,7 +496,10 @@ let msg_format = ref (fun () ->
(* The loop ignores the command line arguments as the current model delegates
its handing to the toplevel container. *)
-let loop ~opts:_ ~state =
+let loop run_mode ~opts:_ state =
+ match run_mode with
+ | Coqtop.Batch -> exit 0
+ | Coqtop.Interactive ->
let open Vernac.State in
set_doc state.doc;
init_signal_handler ();
@@ -563,7 +566,9 @@ let islave_parse ~opts extra_args =
print_string (String.concat "\n" extra_args);
run_mode, []
-let islave_init ~opts = ()
+let islave_init run_mode ~opts =
+ if run_mode = Coqtop.Batch then Flags.quiet := true;
+ Coqtop.init_toploop opts
let islave_default_opts =
Coqargs.{ default with