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 | 64bfc6d2e387ad5d6cff63f1ee63077dbe86d605 (patch) | |
| tree | 4d0ec571851364e0326c5778e090605d319b0e1d /lib/rdoc/options.rb | |
| parent | 5713ba185fc49415781d81e3ccc52881d954c2a4 (diff) | |
| download | ruby-64bfc6d2e387ad5d6cff63f1ee63077dbe86d605.tar.gz ruby-64bfc6d2e387ad5d6cff63f1ee63077dbe86d605.tar.xz ruby-64bfc6d2e387ad5d6cff63f1ee63077dbe86d605.zip | |
* lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
after the previous generation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 53eee992e..4dfe45169 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 |
