summaryrefslogtreecommitdiff
path: root/lib/rdoc/options.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-18 00:46:16 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-18 00:46:16 +0000
commitfd25f74d64c69d636764ea11aa5a809b85e58f69 (patch)
tree40585659bf4b9665ad0d258c415a6765a056d35d /lib/rdoc/options.rb
parent0af4a490b48bb6fef8d4f392d0c0b215db8e06f9 (diff)
Import RDoc r101.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r--lib/rdoc/options.rb14
1 files changed, 10 insertions, 4 deletions
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
@@ -62,6 +62,11 @@ class RDoc::Options
attr_accessor :generator
##
+ # Formatter to mark up text with
+
+ attr_accessor :formatter
+
+ ##
# image format for diagrams
attr_reader :image_format
@@ -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