This commit is contained in:
Jeremy Ashkenas
2009-12-24 01:22:41 -05:00
parent b1f3ad24a2
commit 0a58eeef2b
7 changed files with 45 additions and 27 deletions

View File

@@ -93,7 +93,7 @@ Usage:
# Eval a little piece of CoffeeScript directly from the command line.
def eval_scriptlet
script = @sources.join(' ')
script = STDIN.tty? ? @sources.join(' ') : STDIN.read
return tokens(script) if @options[:tokens]
js = compile(script)
return lint(js) if @options[:lint]