I have a Rake task wherein I am taking two arguments from command line and i need to pass those arguments to the method inside the task. How do I do that?
namespace :auto_sales_commission do
desc "Process for Daily Summary Commission"
task :daily_sales_commission,[:arg1, :arg2] => :environment do |t,args|
#some code
end
def get_date(arg1,arg2)
#some code
end
end