diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-17 14:46:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-17 14:46:13 +0000 |
commit | 392f342f04b8039bb5a352b17dac02311e260276 (patch) | |
tree | 78700630c0e2f510607c4830949df73d1ad8f77e /lib/rdoc/options.rb | |
parent | 8114a2edb0eff269e0f8897a059656c8e0973053 (diff) |
* lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
after the previous generation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r-- | lib/rdoc/options.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index 53eee992e2..4dfe45169c 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -91,6 +91,9 @@ class Options # multiple files attr_reader :promiscuous + # scan newer sources than the flag file if true. + attr_reader :force_update + module OptionList OPTION_LIST = [ @@ -134,6 +137,10 @@ class Options "Silently discarded if --diagram is not given\n" + "Experimental." ], + [ "--force-update", "-U", nil, + "forces to scan all sources even if newer than\n" + + "the flag file." ], + [ "--fmt", "-f", "format name", "set the output formatter (see below)" ], @@ -363,6 +370,7 @@ class Options @include_line_numbers = false @extra_accessor_flags = {} @promiscuous = false + @force_update = false @css = nil @webcvs = nil @@ -462,6 +470,9 @@ class Options OptionList.error("Unknown extension .#{old} to -E") end + when "--force-update" + @force_update = true + when "--version" puts VERSION_STRING exit |