Permalink
Browse files

using name

  • Loading branch information...
1 parent 718339f commit f48184bcc70485a7b866f654fe3a041e5855776e @jfd committed Nov 2, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 examples/nodejs-test.js
@@ -31,22 +31,22 @@ parser.on(0, function(value) {
});
// Handle the --include-file switch
-parser.on('include-file', function(value) {
+parser.on('include-file', function(name, value) {
options.files.push(value);
});
// Handle the --print switch
-parser.on('print', function(value) {
+parser.on('print', function(name, value) {
console.log('PRINT: ' + (value || 'No message entered'));
});
// Handle the --date switch
-parser.on('date', function(value) {
+parser.on('date', function(name, value) {
options.date = value;
});
// Handle the --number switch
-parser.on('number', function(value) {
+parser.on('number', function(name, value) {
options.number = value;
});

0 comments on commit f48184b

Please sign in to comment.