diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-19 15:35:01 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-19 15:35:01 +0000 |
commit | 4e4f355b87d3f0c0718e360cf7a89838e0333d98 (patch) | |
tree | 83e639ed028a62eb2a068ef2f33cbe6faa2248e5 /lib/optparse.rb | |
parent | 887d2c677518261f35e7855e4b1a670df59a8af8 (diff) |
just a minor change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 2c034043e0..2c91cd004f 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -398,8 +398,7 @@ class OptionParser self end - # :nodoc: - def add_banner(to) + def add_banner(to) # :nodoc: unless @short or @long s = desc.join to << " [" + s + "]..." unless s.empty? @@ -407,8 +406,7 @@ class OptionParser to end - # :nodoc: - def match_nonswitch?(str) + def match_nonswitch?(str) # :nodoc: @pattern =~ str unless @short or @long end @@ -643,8 +641,7 @@ class OptionParser end end - # :nodoc: - def add_banner(to) + def add_banner(to) # :nodoc: list.each do |opt| if opt.respond_to?(:add_banner) opt.add_banner(to) @@ -1244,8 +1241,7 @@ class OptionParser parse_in_order(argv, &nonopt) end - # :nodoc: - def parse_in_order(argv = default_argv, setter = nil, &nonopt) + def parse_in_order(argv = default_argv, setter = nil, &nonopt) # :nodoc: opt, arg, sw, val, rest = nil nonopt ||= proc {|arg| throw :terminate, arg} argv.unshift(arg) if arg = catch(:terminate) { |