merging in Trevor's --no-wrap deprecation

This commit is contained in:
Jeremy Ashkenas 2010-11-01 20:57:43 -04:00
parent a4be3bceec
commit 67f1e04f3b
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@
o.run = !(o.compile || o.print || o.lint);
o.print = !!(o.print || (o.eval || o.stdio && o.compile));
sources = o.arguments;
return opts['no-wrap'] ? console.log('--no-wrap is deprecated; please use --bare instead.\n') : void 0;
return opts['no-wrap'] ? console.warn('--no-wrap is deprecated; please use --bare instead.') : void 0;
};
compileOptions = function(fileName) {
return {

View File

@ -187,7 +187,7 @@ parseOptions = ->
o.print = !! (o.print or (o.eval or o.stdio and o.compile))
sources = o.arguments
if opts['no-wrap']
console.log '--no-wrap is deprecated; please use --bare instead.\n'
console.warn '--no-wrap is deprecated; please use --bare instead.'
# The compile-time options to pass to the CoffeeScript compiler.
compileOptions = (fileName) -> {fileName, bare: opts.bare or opts['no-wrap']}