ensuring that we don't write --eval scriptlets out to disk -- they should print, if nothing else

This commit is contained in:
Jeremy Ashkenas
2010-02-21 22:41:19 -05:00
parent f582b73035
commit aad0ce162d
2 changed files with 5 additions and 5 deletions

View File

@@ -73,9 +73,9 @@ compile_script: (source, code) ->
else if opts.tree then puts coffee.tree(code).toString()
else
js: coffee.compile code, o
if opts.run then eval js
else if opts.print then puts js
else if opts.lint then lint js
if opts.run then eval js
else if opts.lint then lint js
else if opts.print or opts.eval then puts js
else write_js source, js
catch err
if opts.watch then puts err.message else throw err