class Rake::Application
def collect_tasks
given, return a list containing only the default task.
Collect the list of tasks on the command line. If no tasks are
def collect_tasks @top_level_tasks = [] ARGV.each do |arg| if arg =~ /^(\w+)=(.*)$/ ENV[$1] = $2 else @top_level_tasks << arg unless arg =~ /^-/ end end @top_level_tasks.push("default") if @top_level_tasks.size == 0 end