mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 02:51:25 -05:00
beginnings of a build script
This commit is contained in:
@@ -36,6 +36,12 @@ exports.run: ->
|
||||
return require './repl' if options.interactive
|
||||
return puts coffee.compile sources[0] if options.eval
|
||||
usage() unless sources.length
|
||||
separator: sources.indexOf '--'
|
||||
flags: []
|
||||
if separator >= 0
|
||||
flags: sources[(separator + 1)...sources.length]
|
||||
sources: sources[0...separator]
|
||||
process.ARGV = flags
|
||||
compile_scripts()
|
||||
this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user