From: chad fowler Date: 2000-12-30T23:27:48+09:00 Subject: [ruby-talk:8355] Re: command-line options? > writes: > > J> how can I access the command-line options given > to a script? > > See the constant ARGV > You can also use the "-s" option to ruby that will cause ruby to automatically parse options passed after the script name: ruby -s myscript.rb -foo=bar ----------myscript.rb----------- print $foo.upcase! -------------------------------- ...will print: BAR __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/