Commits

Corentin Derbois committed 9bde67c

Add get method

Comments (0)

Files changed (1)

     try
       if (Hashtbl.find options key = "yes") then true else false
     with
-      Not_found -> false
+      Not_found -> print_endline ("Option warning: " ^ key); false
 
+  method get key =
+    try
+      Hashtbl.find options key
+    with
+      Not_found -> print_endline ("Option warning: " ^ key); ""
 
 end