From b8a59c197d9b51f7746d37431bf5f2708a376aef Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 21 Dec 2008 03:23:19 +0000 Subject: * lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/optparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/optparse.rb b/lib/optparse.rb index 0548a29ca..134f1cf3b 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -996,7 +996,7 @@ class OptionParser end private :notwice - SPLAT_PROC = proc {|*a| a} + SPLAT_PROC = proc {|*a| next *a} # # Creates an OptionParser::Switch from the parameters. The parsed argument # value is passed to the given block, where it can be processed. -- cgit