aboutsummaryrefslogtreecommitdiff
path: root/vernac/proof_using.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-04-17 11:26:01 +0200
committerEmilio Jesus Gallego Arias2019-04-17 11:26:01 +0200
commit14a51bd079fb3ba5d2eece1dced219ce66702694 (patch)
treee5b8881bedc60a4e30a19842a965f1a2aaefaf3b /vernac/proof_using.ml
parent801c672defa3192cea522b5d8b34e5aef9fc37ee (diff)
parent1e1fd6d7e66cee0130a119bf1ded6b7dee17131c (diff)
Merge PR #9876: Command-line setters for options
Ack-by: SkySkimmer Reviewed-by: Zimmi48 Reviewed-by: ejgallego Reviewed-by: gares
Diffstat (limited to 'vernac/proof_using.ml')
-rw-r--r--vernac/proof_using.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/vernac/proof_using.ml b/vernac/proof_using.ml
index 526845084a..1d089d0a55 100644
--- a/vernac/proof_using.ml
+++ b/vernac/proof_using.ml
@@ -172,11 +172,12 @@ let value = ref None
let using_to_string us = Pp.string_of_ppcmds (Ppvernac.pr_using us)
let using_from_string us = Pcoq.Entry.parse G_vernac.section_subset_expr (Pcoq.Parsable.make (Stream.of_string us))
+let proof_using_opt_name = ["Default";"Proof";"Using"]
let () =
Goptions.(declare_stringopt_option
{ optdepr = false;
optname = "default value for Proof using";
- optkey = ["Default";"Proof";"Using"];
+ optkey = proof_using_opt_name;
optread = (fun () -> Option.map using_to_string !value);
optwrite = (fun b -> value := Option.map using_from_string b);
})