there are two ways to passing args to rake task
please refer to https://itshouldbeuseful.wordpress.com/2011/11/07/passing-parameters-to-a-rake-task/
$ rake say_hello[eddie], or rake say_hello name='eddie'
desc 'say hello'
task :say_hello1 do
name = ENV['name']
puts "Hello, #{name}."
end