From f3846ac51b56905737be955c9c0fcf61161c208f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Sep 2006 15:49:44 +0000 Subject: [PATCH] * lib/optparse.rb (OptionParser#parse_in_order): wrong splat for callbacks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/optparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)