From 392f342f04b8039bb5a352b17dac02311e260276 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 17 Sep 2006 14:46:13 +0000 Subject: * 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 --- lib/rdoc/options.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/rdoc/options.rb') 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 -- cgit v1.2.3