diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-07 23:48:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-07 23:48:47 +0000 |
commit | 8a7fbc6fec40d77175caa412994e406305769c5a (patch) | |
tree | 96cd04e4f6c7a9d374e922ed5edc421808472789 /lib/optparse/uri.rb | |
parent | 11cfb7e0f458971deca325c1d3032d1665d74bef (diff) | |
download | ruby-8a7fbc6fec40d77175caa412994e406305769c5a.tar.gz |
* 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.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/uri.rb b/lib/optparse/uri.rb index b24de88b76..5bdcf57c96 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} |