diff options
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 |