* lib/optparse.rb (OptionParser#order!): follow recent change

of proc argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-03-20 09:31:41 +00:00
parent 923b688362
commit d666a5183c
2 changed files with 6 additions and 1 deletions

View file

@ -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