From: Jeff Leeman Date: 2009-04-17T07:29:07+09:00 Subject: Re: Passing hashes as command-line parameters Ok, interesting. I'm using a PC, and I tried the exact code that Sebastian put together, and it runs fine in Cygwin, but does not work in the command prompt window: C:\rails_app>jruby script\runner "SomeClassName.method_name({:some_key_1 => 'some_value_1', :some_key_2 => 'some_value_2'})" script\runner:6: (eval):1: , unexpected '=' (SyntaxError) I guess I don't know the command prompt language too well, but there's probably some special way things have to be delimited with quotes. -Jeff Joel VanderWerf wrote: > Jeff Leeman wrote: >>> Like ... ? >> > > You could just eval ARGV[0] in this case. > > $ ruby -e 'p eval(ARGV[0])' '{:foo => :bar}' > {:foo=>:bar} -- Posted via http://www.ruby-forum.com/.