Merge pull request #1807 from TrevorBurnham/console_io
fixes #1798: using process.stderr in command.coffee
This commit is contained in:
commit
a6081caf50
|
@ -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.';
|
||||
|
|
|
@ -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.
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue