mruby command should not execute program on "syntax only option(-c)".

This commit is contained in:
Tatsuya Matsumoto
2014-03-05 12:49:58 +09:00
parent ba608fb38a
commit 23cb0bb64b
+1 -1
View File
@@ -201,7 +201,7 @@ main(int argc, char **argv)
if (args.verbose)
c->dump_result = TRUE;
if (args.check_syntax)
c->no_exec = FALSE;
c->no_exec = TRUE;
if (args.mrbfile) {
v = mrb_load_irep_file_cxt(mrb, args.rfp, c);
}