Implement -d (debug) option.
[goals.git] / src / main.ml
index 127c24c..6546fd5 100644 (file)
@@ -49,7 +49,8 @@ let main () =
     if targets <> [] then targets
     else [Ast.ECallGoal (Ast.noloc, "all", [])] in
 
-  Ast.print_env stderr env;
+  if Cmdline.debug_flag then
+    Ast.print_env stderr env;
 
   (* Evaluate the target expressions in turn. *)
   Eval.evaluate_targets env targets