From fd25f74d64c69d636764ea11aa5a809b85e58f69 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 18 Jul 2008 00:46:16 +0000 Subject: Import RDoc r101. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/options.rb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib/rdoc/options.rb') diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index bc17fba8ad..4fedb40b9c 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -39,7 +39,7 @@ class RDoc::Options ## # Pattern for additional attr_... style methods - attr_reader :extra_accessors + attr_accessor :extra_accessors ## # Should we draw fileboxes in diagrams @@ -61,6 +61,11 @@ class RDoc::Options attr_accessor :generator + ## + # Formatter to mark up text with + + attr_accessor :formatter + ## # image format for diagrams @@ -95,7 +100,7 @@ class RDoc::Options ## # The name to use for the output - attr_reader :op_name + attr_accessor :op_name ## # Are we promiscuous about showing module contents across multiple files @@ -105,7 +110,7 @@ class RDoc::Options ## # Don't display progress as we process the files - attr_reader :quiet + attr_accessor :quiet ## # Array of directories to search for files to satisfy an :include: @@ -175,7 +180,6 @@ class RDoc::Options @extra_accessor_flags = {} @promiscuous = false @force_update = false - @title = "RDoc Documentation" @css = nil @webcvs = nil @@ -513,6 +517,8 @@ Usage: #{opt.program_name} [options] [names...] end end + argv.insert(0, *ENV['RDOCOPT'].split) if ENV['RDOCOPT'] + opts.parse! argv @files = argv.dup -- cgit v1.2.3