aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorMaxime Dénès2018-02-13 11:17:29 +0100
committerMaxime Dénès2018-02-13 11:17:29 +0100
commit4f65dfb13d8bb395abf4aa405cae9ed529302a06 (patch)
tree3faa2bdcd321394097b1d8c04372a409b0835879 /ide
parent19d4ba5fa2ff8827f86d00df95a88e3f5cbdfd10 (diff)
parente5fbfbb162f95b30426fbe06f278c6d031abfd8a (diff)
Merge PR #6693: [toplevel] Refactor command line argument handling.
Diffstat (limited to 'ide')
-rw-r--r--ide/ide_slave.ml10
1 files changed, 6 insertions, 4 deletions
diff --git a/ide/ide_slave.ml b/ide/ide_slave.ml
index 5f40a22423..6d1064d25f 100644
--- a/ide/ide_slave.ml
+++ b/ide/ide_slave.ml
@@ -454,9 +454,11 @@ let slave_feeder fmt xml_oc msg =
let msg_format = ref (fun () ->
let margin = Option.default 72 (Topfmt.get_margin ()) in
Xmlprotocol.Richpp margin
-)
+ )
-let loop doc =
+(* The loop ignores the command line arguments as the current model delegates
+ its handing to the toplevel container. *)
+let loop _args doc =
set_doc doc;
init_signal_handler ();
catch_break := false;
@@ -504,8 +506,8 @@ let rec parse = function
| x :: rest -> x :: parse rest
| [] -> []
-let () = Coqtop.toploop_init := (fun args ->
- let args = parse args in
+let () = Coqtop.toploop_init := (fun coq_args extra_args ->
+ let args = parse extra_args in
Flags.quiet := true;
CoqworkmgrApi.(init High);
args)