How to access command line parameters of a ruby script?
···
--
Posted via http://www.ruby-forum.com/.
How to access command line parameters of a ruby script?
--
Posted via http://www.ruby-forum.com/.
Fritz Trapper wrote:
How to access command line parameters of a ruby script?
Short answer: the array ARGV contains them.
Long answer: there are several libraries for parsing switches, subcommands, etc. out of this array. Do a web search for "ruby command line parsing".
Thanks.
--
Posted via http://www.ruby-forum.com/.