summaryrefslogtreecommitdiff
path: root/library/goptions.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2010-07-01 17:21:14 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2010-07-01 17:21:14 +0200
commitda178a880e3ace820b41d38b191d3785b82991f5 (patch)
tree6356ab3164a5ad629f4161dc6c44ead74edc2937 /library/goptions.ml
parente4282ea99c664d8d58067bee199cbbcf881b60d5 (diff)
Imported Upstream version 8.2pl2+dfsgupstream/8.2.pl2+dfsg
Diffstat (limited to 'library/goptions.ml')
-rw-r--r--library/goptions.ml9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/goptions.ml b/library/goptions.ml
index a9b33235..8625ee52 100644
--- a/library/goptions.ml
+++ b/library/goptions.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: goptions.ml 10348 2007-12-06 17:36:14Z aspiwack $ *)
+(* $Id: goptions.ml 13196 2010-06-25 18:01:50Z herbelin $ *)
(* This module manages customization parameters at the vernacular level *)
@@ -297,10 +297,11 @@ let set_int_option_value = set_option_value
(fun v -> function
| (IntValue _) -> IntValue v
| _ -> bad_type_error ())
-let set_bool_option_value = set_option_value
- (fun v -> function
+let set_bool_option_value key v =
+ try set_option_value (fun v -> function
| (BoolValue _) -> BoolValue v
- | _ -> bad_type_error ())
+ | _ -> bad_type_error ()) key v
+ with UserError (_,s) -> Flags.if_verbose msg_warning s
let set_string_option_value = set_option_value
(fun v -> function
| (StringValue _) -> StringValue v