From: Feng Tien Date: 2007-11-16T17:02:18+09:00 Subject: Can someone show me how to use ARGV with my class? I'm trying to write an command line program. For instance if I have a class like this with 1 method class Coolest Program coolest_method (a,b) puts a + b end end ====== How do I program it so it runs in command line? so: ==== ruby coolest.rb "cool" "est" ==== it'll output: coolest === aka insert the 2 arguments into the Coolest Program object? Can't seem to figure this out, been searching the last hour. I get how to use the OptionParser library to take options, but not arguments. -- Posted via http://www.ruby-forum.com/.