Browse Source

fix : com.debug defined

Nicolas Cannasse 17 years ago
parent
commit
b30503e63a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -303,7 +303,7 @@ try
 			) lines) @ !excludes;
 		),"<filename> : don't generate code for classes listed in this file");
 		("-v",Arg.Unit (fun () -> com.verbose <- true),": turn on verbose mode");
-		("-debug", define "debug", ": add debug informations to the compiled code");
+		("-debug", Arg.Unit (fun() -> Common.define com "debug"; com.debug <- true), ": add debug informations to the compiled code");
 		("-prompt", Arg.Unit (fun() -> prompt := true),": prompt on error");
 		("-cmd", Arg.String (fun cmd ->
 			cmds := cmd :: !cmds