 
 # The "--version" message.
 version: ->
-  puts "CoffeeScript version " + coffee.VERSION
+  puts "CoffeeScript version " + CoffeeScript.VERSION
   process.exit 0
 
 # Compiles the source CoffeeScript, returning the desired JavaScript, tokens,

  process.stdio.addListener 'data', (string) ->
    code += string if string
  process.stdio.addListener 'close', ->
    process.stdio.write coffee.compile code, compile_options()

# Watch a list of source CoffeeScript files, recompiling them every time the
# files are updated.

compile_script: (source, code) ->
  o: options
  try
    if      o.tokens            then print_tokens CoffeeScript.tokenize code
    else if o.tree              then puts CoffeeScript.tree(code).toString()
    else
      js: CoffeeScript.compile code, compile_options()
      if      o.run             then eval js
      else if o.lint            then lint js
      else if o.print or o.eval then print js
