1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Issue #853. Normalizing values of ARGV and argv with Node.js

This commit is contained in:
Jeremy Ashkenas 2010-12-11 13:50:59 -05:00
parent b6324d0007
commit 9f56c92497
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@
if (opts.run) {
flags = sources.splice(1).concat(flags);
}
process.ARGV = process.argv = flags;
process.ARGV = process.argv = process.argv.slice(0, 2).concat(flags);
return compileScripts();
};
compileScripts = function() {

View file

@ -73,7 +73,7 @@ exports.run = ->
sources.pop()
if opts.run
flags = sources.splice(1).concat flags
process.ARGV = process.argv = flags
process.ARGV = process.argv = process.argv.slice(0, 2).concat flags
compileScripts()
# Asynchronously read in each CoffeeScript in a list of source files and