summaryrefslogtreecommitdiff
path: root/lib/rdoc/options.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-04 21:16:19 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-04 21:16:19 +0000
commitbe710a03919604a1b7776043aecc5cf0914da01c (patch)
tree4e5fd151d3099043c7b75e3bef2f22135081ff9d /lib/rdoc/options.rb
parent3467a1754c83c0f4061f345a7ee965f60d16fca5 (diff)
* 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
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r--lib/rdoc/options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 364cd61d38d..8dc55a3f182 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -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