Skip to content

Commit

Permalink
using name
Browse files Browse the repository at this point in the history
  • Loading branch information
jfd committed Nov 2, 2011
1 parent 718339f commit f48184b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/nodejs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit f48184b

Please sign in to comment.