Skip to content

Commit

Permalink
Top level DSL is make the default (for now).
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Jun 30, 2009
1 parent 0b11f0f commit 4e8233d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rake/application.rb
Expand Up @@ -371,7 +371,7 @@ def standard_rake_options
],
['--top-level-dsl', '-X', "Put Rake DSL commands in the top level scope.",
lambda { |value|
Rake::DSL.include_in_top_scope
options.top_level_dsl = value
}
],
['--trace', '-t', "Turn on invoke/execute tracing, enable full backtrace.",
Expand Down Expand Up @@ -417,6 +417,8 @@ def handle_options
opts.environment('RAKEOPT')
end.parse!

Rake::DSL.include_in_top_scope if options.top_level_dsl

# If class namespaces are requested, set the global options
# according to the values in the options structure.
if options.classic_namespace
Expand Down

0 comments on commit 4e8233d

Please sign in to comment.