From 7ae602e501e83e4c1d15f55f09a506df019c2fc8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Sep 2006 15:49:44 +0000 Subject: * lib/optparse.rb (OptionParser#parse_in_order): wrong splat for callbacks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/optparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/optparse.rb') diff --git a/lib/optparse.rb b/lib/optparse.rb index 6bfb91800..84b2066f2 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) -- cgit