summaryrefslogtreecommitdiff
path: root/lib/optparse/uri.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-07 23:48:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-07 23:48:47 +0000
commit8a7fbc6fec40d77175caa412994e406305769c5a (patch)
tree96cd04e4f6c7a9d374e922ed5edc421808472789 /lib/optparse/uri.rb
parent11cfb7e0f458971deca325c1d3032d1665d74bef (diff)
* lib/optparse.rb (OptionParser::Switch::parse_arg): require block
always. * lib/optparse.rb (NilClass): must provide conversion block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse/uri.rb')
-rw-r--r--lib/optparse/uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/uri.rb b/lib/optparse/uri.rb
index b24de88..5bdcf57 100644
--- a/lib/optparse/uri.rb
+++ b/lib/optparse/uri.rb
@@ -3,4 +3,4 @@
require 'optparse'
require 'uri'
-OptionParser.accept(URI) {|s| [URI.parse(s)] if s}
+OptionParser.accept(URI) {|s| URI.parse(s) if s}