Permalink
Browse files

[fix] Changed require('sys') to require('util') for compatibility wit…

…h node v0.8
  • Loading branch information...
1 parent 87934de commit eeda5cf56e23933fdfa98760a7d8a3956a2d36e3 @blakmatrix blakmatrix committed Jun 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/extern/optparse/README.md
@@ -12,7 +12,7 @@ QUICK START
The library defines one class, the OptionParser class. The class constructor takes one single argument, a list with a set of rules. Here is a quick example:
// Import the sys library
- var sys = require('sys');
+ var util = require('util');
// Import the optparse library.
var optparse = require('optparse');
@@ -29,7 +29,7 @@ The library defines one class, the OptionParser class. The class constructor tak
// Hook the help option. The callback will be executed when the OptionParser
// hits the switch ´´-h´´ or ´´--help´´. Each representatio
parser.on('help', function() {
- sys.puts('Help');
+ util.puts('Help');
});

0 comments on commit eeda5cf

Please sign in to comment.