From: Lee Jarvis Date: 2010-06-26T17:45:09+09:00 Subject: Re: getting array input from command line --0015174c13dc875c4f0489eae785 Content-Type: text/plain; charset=ISO-8859-1 On 26 June 2010 06:58, Ted Flethuseo wrote: > Hi everyone, > > I want to get some data from > a user, that I want to put in an > array.. well the first one is filename > and the rest are a bunch of numbers > which are sepparated by -i and -o > options. > > > inFile = ARGV[0] > myArr = -i params > myArr2 = -o params > > Any help appreciated. > Ted. > -- > Posted via http://www.ruby-forum.com/. > > Also, check out OptionParser - http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.html --0015174c13dc875c4f0489eae785--