Permalink
Browse files

Removed email

  • Loading branch information...
jfd committed Dec 1, 2009
1 parent b06effa commit 2d3ce3d7c5399b22d8afec8e29192de185bc65a0
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/optparse.js
View
@@ -278,20 +278,20 @@ OptionParser.prototype = {
return this._halt ? this.on_halt.apply(this, []) : result;
},
- // Returns a list with all defined option rules
+ // Returns an Array with all defined option rules
options: function() {
return build_rules(this.filters, this._rules);
},
- // Add an on_halt handler if fn is specified. on_switch handlers can
+ // Add an on_halt callback if argument ´´fn´´ is specified. on_switch handlers can
// call instance.halt to abort the argument parsing. This can be useful when
// displaying help or version information.
halt: function(fn) {
this._halt = fn === undefined
if(fn) this.on_halt = fn;
},
- // Returns a representation of this OptionParser instance.
+ // Returns a string representation of this OptionParser instance.
toString: function() {
var builder = [this.banner, '', this.options_title],
shorts = false, longest = 0, rule;

0 comments on commit 2d3ce3d

Please sign in to comment.