如何在Rake 的Task里加入多个输入参数

desc "preview"
task :preview do
    puts "preview"
end

desc 'want to say hello'
task :hello , [:name, :from] => :preview do |t, args|
  puts "hello world, #{args[:name]} from #{args[:from]}!"
end

task :default => :hello

原文地址:https://www.cnblogs.com/buhaiqing/p/2776929.html