Commit 3c28241b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #654 from mattn/default_task

add 'default' task if not specified.
parents 0955f25a bb7f0fdc
......@@ -389,7 +389,6 @@ class RakeApp
if $show_tasks
display_tasks
else
ARGV.push("default") if ARGV.size == 0
p ARGV
tasks = []
ARGV.each do |task_name|
......@@ -399,6 +398,7 @@ class RakeApp
tasks << task_name
end
end
tasks.push("default") if tasks.size == 0
tasks.each do |task_name|
MiniRake::Task[task_name].invoke
end
......@@ -412,7 +412,7 @@ class RakeApp
puts ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
end
exit 1
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment