Skip to content

Commit

Permalink
Added ´´value´´ to the default handler example
Browse files Browse the repository at this point in the history
  • Loading branch information
jfd committed Jan 17, 2010
1 parent 1a716f3 commit 27129cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ And this example show how to hook an argument (an option without the leading - o

It's also possible to define a default handler. The default handler is called when no rule's are meet. Here is an example how to add a ´default handler´:

parser.on(function(opt) {
parser.on(function(opt, value) {
puts('No handler was defined for option:' + opt);
});

Expand Down

0 comments on commit 27129cf

Please sign in to comment.