From: Michael Linfield Date: 2007-09-05T02:03:42+09:00 Subject: Re: script errors Alex Gutteridge wrote: > > What options did you call the script with? Whatever, your use of > OptionParser is wrong. You are asking for date options with no > arguments where you should be asking for arguments: > > opts.on("-s", "--startdate", "Determines what start date to use.") do > > Should be: > > opts.on("-s", "--startdate DATE", "Determines what start date to > use.") do > > And the same for the end date and output options. Check the > OptionParser docs. There are other bugs in there as well: "ARGV = > svg" should surely be "d = 'svg'" for instance. well after fixing those few flaws i get a huge nomethoderror from the method .column such as verizondat.column ...understandable because it is actually supposed to use table.column but in fact table is tied to table = Ruport::Data::Table.parse(csv) which parses the data, not the grep'd array..so i guess my question now would be how do i perform the same function except on the grep'd data? -Thanks -- Posted via http://www.ruby-forum.com/.