Using process.stderr in command.coffee (fixes #1798)

This commit is contained in:
Trevor Burnham
2011-10-27 11:23:03 -04:00
parent 91cb433b66
commit c77f7737a5
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.
'''