Merge pull request #1807 from TrevorBurnham/console_io

fixes #1798: using process.stderr in command.coffee
This commit is contained in:
Jeremy Ashkenas 2011-10-27 08:42:17 -07:00
commit a6081caf50
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
};
printWarn = function(line) {
return process.binding('stdio').writeError(line + '\n');
return process.stderr.write(line + '\n');
};
BANNER = 'Usage: coffee [options] path/to/script.coffee\n\nIf called without options, `coffee` will run your script.';

View File

@ -17,12 +17,12 @@ CoffeeScript = require './coffee-script'
helpers.extend CoffeeScript, new EventEmitter
printLine = (line) -> process.stdout.write line + '\n'
printWarn = (line) -> process.binding('stdio').writeError line + '\n'
printWarn = (line) -> process.stderr.write line + '\n'
# The help banner that is printed when `coffee` is called without arguments.
BANNER = '''
Usage: coffee [options] path/to/script.coffee
If called without options, `coffee` will run your script.
'''