Skip to content

Commit

Permalink
Removed sys.* usage in jade(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 13, 2011
1 parent c70652b commit 764b876
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/jade
Expand Up @@ -4,8 +4,7 @@
* Module dependencies.
*/

var sys = require('sys')
, fs = require('fs')
var fs = require('fs')
, resolve = require('path').resolve
, basename = require('path').basename
, jade;
Expand Down Expand Up @@ -82,7 +81,7 @@ while (args.length) {
switch (arg) {
case '-h':
case '--help':
sys.puts(usage);
console.log(usage);
process.exit(1);
break;
case '-p':
Expand All @@ -95,7 +94,7 @@ while (args.length) {
if (str) {
options = eval('(' + str + ')');
} else {
sys.error('-o, --options requires a string.');
console.error('-o, --options requires a string.');
process.exit(1);
}
break;
Expand Down Expand Up @@ -127,7 +126,7 @@ if (watchers && !files.length) {
jade.renderFile(file, options, function(err, html){
if (err) throw err;
if (pipe) {
sys.puts(html);
console.log(html);
} else {
writeFile(file, html);
}
Expand Down

0 comments on commit 764b876

Please sign in to comment.