mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
* lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f6d905c022
commit
3e23c0c8c1
4 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue