mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
* lib/rdoc/generator/html.rb: ditto. * lib/rdoc/options.rb: Fix shadowed variable warning. * lib/webrick/httprequest.rb: Fix redefined method warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3467a1754c
commit
be710a0391
5 changed files with 17 additions and 5 deletions
|
@ -189,7 +189,7 @@ class RDoc::Options
|
|||
def parse(argv)
|
||||
accessors = []
|
||||
|
||||
opt = OptionParser.new do |opt|
|
||||
opts = OptionParser.new do |opt|
|
||||
opt.program_name = File.basename $0
|
||||
opt.version = RDoc::VERSION
|
||||
opt.summary_indent = ' ' * 4
|
||||
|
@ -513,7 +513,7 @@ Usage: #{opt.program_name} [options] [names...]
|
|||
end
|
||||
end
|
||||
|
||||
opt.parse! argv
|
||||
opts.parse! argv
|
||||
|
||||
@files = argv.dup
|
||||
|
||||
|
@ -539,7 +539,7 @@ Usage: #{opt.program_name} [options] [names...]
|
|||
end
|
||||
|
||||
rescue OptionParser::InvalidArgument, OptionParser::InvalidOption => e
|
||||
puts opt
|
||||
puts opts
|
||||
puts
|
||||
puts e
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue