summaryrefslogtreecommitdiffstats
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
commite83510ca164816f91ceb7bbea7e36abc0baa061f (patch)
treecef8e3f6458a93c44712514a178a995ff9347f62
parentb3395597608788b7ca7fdd1601b9a85053470010 (diff)
downloadruby-e83510ca164816f91ceb7bbea7e36abc0baa061f.tar.gz
ruby-e83510ca164816f91ceb7bbea7e36abc0baa061f.tar.xz
ruby-e83510ca164816f91ceb7bbea7e36abc0baa061f.zip
* lib/optparse.rb (OptionParser#parse_in_order): wrong splat for
callbacks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/optparse.rb2
1 files changed, 1 insertions, 1 deletions
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)