diff --git a/moonscript/cmd/moonc.lua b/moonscript/cmd/moonc.lua index 55009c9..dc53cd5 100644 --- a/moonscript/cmd/moonc.lua +++ b/moonscript/cmd/moonc.lua @@ -141,7 +141,7 @@ compile_and_write = function(src, dest, opts) return true end if opts.print then - print(text) + print(code) return true end return write_file(dest, code) diff --git a/moonscript/cmd/moonc.moon b/moonscript/cmd/moonc.moon index 8cb2bbb..6b8b206 100644 --- a/moonscript/cmd/moonc.moon +++ b/moonscript/cmd/moonc.moon @@ -137,7 +137,7 @@ compile_and_write = (src, dest, opts={}) -> return true if opts.print - print text + print code return true write_file dest, code