Skip to content

Commit

Permalink
Rename collect_tasks to collect_command_line_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Nov 27, 2013
1 parent 6a4d229 commit bfafc3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rake/application.rb
Expand Up @@ -84,7 +84,7 @@ def init(app_name='rake')
standard_exception_handling do
@name = app_name
handle_options
collect_tasks
collect_command_line_tasks
end
end

Expand Down Expand Up @@ -685,7 +685,7 @@ def standard_system_dir #:nodoc:
# Collect the list of tasks on the command line. If no tasks are
# given, return a list containing only the default task.
# Environmental assignments are processed at this time as well.
def collect_tasks
def collect_command_line_tasks
@top_level_tasks = []
ARGV.each do |arg|
if arg =~ /^(\w+)=(.*)$/m
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_application_options.rb
Expand Up @@ -458,7 +458,7 @@ def @app.exit(*args)
end
@app.instance_eval do
handle_options
collect_tasks
collect_command_line_tasks
end
@tasks = @app.top_level_tasks
@app.options
Expand Down

0 comments on commit bfafc3a

Please sign in to comment.