diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-26 06:23:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-26 06:23:17 +0000 |
commit | 0a2587fa909c7db8974e0c39e1ee4d7ab544b9c9 (patch) | |
tree | 54febf565a0af63e478e6adb335d15f2227f7933 /lib/optparse.rb | |
parent | 7c2dc8a6ff013cebfc867e630b7bcf26f6184c06 (diff) | |
download | ruby-0a2587fa909c7db8974e0c39e1ee4d7ab544b9c9.tar.gz ruby-0a2587fa909c7db8974e0c39e1ee4d7ab544b9c9.tar.xz ruby-0a2587fa909c7db8974e0c39e1ee4d7ab544b9c9.zip |
backout
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index ea1ba6135..fcd6a881c 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1118,7 +1118,7 @@ Default options, which never appear in option summary. end begin opt, sw, val = sw.parse(rest, argv) {|*exc| raise(*exc)} - sw.yield(*val) if sw + sw.yield(val) if sw rescue ParseError raise $!.set_option(arg, rest) end @@ -1147,7 +1147,7 @@ Default options, which never appear in option summary. opt, sw, val = sw.parse(val, argv) {|*exc| raise(*exc) if eq} raise InvalidOption, arg if has_arg and !eq and arg == "-#{opt}" argv.unshift(opt) if opt and (opt = opt.sub(/\A-*/, '-')) != '-' - sw.yield(*val) if sw + sw.yield(val) if sw rescue ParseError raise $!.set_option(arg, has_arg) end |