Ok, I have the following task,
namespace :test do
  task :a do |t,args|  
    p ENV.keys
  end 
end
$ rake test:a ARG1 = "me" ARG2 = "my wife"
The above command displays a big array i.e ENV.keys
ENV.keys looks like this,
["MANPATH", "SSH_AGENT_PID",........,"BUNDLE_BIN_PATH", "RUBYOPT", "ARG1", "ARG2"]
I want only "ARG1" and "ARG2" and I dont want "MANPATH","RUBYOPT" and other things. (Not "me" and "my wife").
The command line variable names. Not values.
Help?
 
    