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:
parent
b6324d0007
commit
9f56c92497
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
||||||
if (opts.run) {
|
if (opts.run) {
|
||||||
flags = sources.splice(1).concat(flags);
|
flags = sources.splice(1).concat(flags);
|
||||||
}
|
}
|
||||||
process.ARGV = process.argv = flags;
|
process.ARGV = process.argv = process.argv.slice(0, 2).concat(flags);
|
||||||
return compileScripts();
|
return compileScripts();
|
||||||
};
|
};
|
||||||
compileScripts = function() {
|
compileScripts = function() {
|
||||||
|
|
|
@ -73,7 +73,7 @@ exports.run = ->
|
||||||
sources.pop()
|
sources.pop()
|
||||||
if opts.run
|
if opts.run
|
||||||
flags = sources.splice(1).concat flags
|
flags = sources.splice(1).concat flags
|
||||||
process.ARGV = process.argv = flags
|
process.ARGV = process.argv = process.argv.slice(0, 2).concat flags
|
||||||
compileScripts()
|
compileScripts()
|
||||||
|
|
||||||
# Asynchronously read in each CoffeeScript in a list of source files and
|
# Asynchronously read in each CoffeeScript in a list of source files and
|
||||||
|
|
Loading…
Add table
Reference in a new issue