We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e936c commit dcb5c1cCopy full SHA for dcb5c1c
lib/rake.rb
@@ -30,7 +30,6 @@ module Rake; end
30
require "singleton"
31
require "monitor"
32
require "optparse"
33
-require "ostruct"
34
35
require "rake/ext/string"
36
lib/rake/application.rb
@@ -165,7 +165,22 @@ def add_loader(ext, loader)
165
166
# Application options from the command line
167
def options
168
- @options ||= OpenStruct.new
+ return @options if @options
169
+
170
+ option = Struct.new(
171
+ :always_multitask, :backtrace, :build_all, :dryrun,
172
+ :ignore_deprecate, :ignore_system, :job_stats, :load_system,
173
+ :nosearch, :rakelib, :show_all_tasks, :show_prereqs,
174
+ :show_task_pattern, :show_tasks, :silent, :suppress_backtrace_pattern,
175
+ :thread_pool_size, :trace, :trace_output, :trace_rules
176
+ )
177
+ @options = option.new(
178
+ false, false, false, false,
179
180
+ false, %w[rakelib], false, false,
181
+ nil, nil, false, nil,
182
+ Rake.suggested_thread_count, false, $stderr, false
183
184
end
185
186
# Return the thread pool used for multithreaded processing.
0 commit comments