summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-26 15:49:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-26 15:49:44 +0000
commit33ae7493f91350a5cf4a0b829e803f9501381252 (patch)
treecef8e3f6458a93c44712514a178a995ff9347f62 /lib
parentbaf5529013a34f4429fba9ef8acc71ec6cf9dd56 (diff)
* lib/optparse.rb (OptionParser#parse_in_order): wrong splat for
callbacks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/optparse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 6bfb91800b..84b2066f27 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1259,7 +1259,7 @@ class OptionParser
end
begin
opt, cb, val = sw.parse(rest, argv) {|*exc| raise(*exc)}
- val = cb.call(*val) if cb
+ val = cb.call(val) if cb
setter.call(sw.switch_name, val) if setter
rescue ParseError
raise $!.set_option(arg, rest)