]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaTypes.ml
now baseuri is needed in each file (and its redefinition is forbidden)
[helm.git] / helm / matita / matitaTypes.ml
index 580f022f59baa8d0337718c9281ebcaf1331775e..9ed52f568dfd5dfe48444d45ea1a9566677063fd 100644 (file)
@@ -126,7 +126,10 @@ let set_option status name value =
         with Failure _ ->
           command_error (sprintf "Not an integer value \"%s\"" value))
   in
-  { status with options = StringMap.add name value status.options }
+  if StringMap.mem name status.options && name = "baseuri" then
+    command_error "Redefinition of 'baseuri' is forbidden."
+  else
+    { status with options = StringMap.add name value status.options }
 
   (* subset of MatitaConsole.console methods needed by MatitaInterpreter *)
 class type console =