summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-21 03:23:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-21 03:23:19 +0000
commit5ad1f1d3cd1de616456fd31ba895cef729e1f242 (patch)
tree7219fc04e0c345839cb05b0f8cddb68ede50a82b /lib
parentd153bd1d720568042a6a6c6b0b21a9fa25209e71 (diff)
* lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20895 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 0548a29cac..134f1cf3b1 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.