@@ -43,7 +43,6 @@ SWITCHES = [
43
43
[ ' --nodejs [ARGS]' , ' pass options directly to the "node" binary' ]
44
44
[' -o' , ' --output [DIR]' , ' set the output directory for compiled JavaScript' ]
45
45
[' -p' , ' --print' , ' print out the compiled JavaScript' ]
46
- [' -r' , ' --require [FILE*]' , ' require a library before executing your script' ]
47
46
[' -s' , ' --stdio' , ' listen for and compile scripts over stdio' ]
48
47
[' -t' , ' --tokens' , ' print out the tokens that the lexer/rewriter produce' ]
49
48
[' -v' , ' --version' , ' display the version number' ]
@@ -67,7 +66,6 @@ exports.run = ->
67
66
return forkNode () if opts .nodejs
68
67
return usage () if opts .help
69
68
return version () if opts .version
70
- loadRequires () if opts .require
71
69
return require (' ./repl' ).start () if opts .interactive
72
70
if opts .watch and ! fs .watch
73
71
return printWarn " The --watch feature depends on Node v0.6.0+. You are running #{ process .version } ."
@@ -165,13 +163,6 @@ compileJoin = ->
165
163
joinTimeout = wait 100 , ->
166
164
compileScript opts .join , sourceCode .join (' \n ' ), opts .join
167
165
168
- # Load files that are to-be-required before compilation occurs.
169
- loadRequires = ->
170
- realFilename = module .filename
171
- module .filename = ' .'
172
- require req for req in opts .require
173
- module .filename = realFilename
174
-
175
166
# Watch a source CoffeeScript file using `fs.watch`, recompiling it every
176
167
# time the file is updated. May be used in combination with other options,
177
168
# such as `--lint` or `--print`.
0 commit comments