From: Alex Gutteridge Date: 2007-09-04T18:15:20+09:00 Subject: Re: script errors On 4 Sep 2007, at 17:42, Michael Linfield wrote: > Nobuyoshi Nakada wrote: >> Hi, >> >> At Tue, 4 Sep 2007 15:43:55 +0900, >> Michael Linfield wrote in [ruby-talk:267464]: >>> graph = Ruport::Graph(:column_names => #the 15 graph points by >>> average >> >> The paren in this line doesn't seem closed, and you may forget >> qoutes? > > lol thanks, now however i run upon a second error, line 29 > > result = (@startdate..@enddate) > > #### > OUTPUTS: > > reportgraph.rb:29: bad value for range (ArgumentError) > #### > > fun timez. > any ideas? > > Thanks! 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. Alex Gutteridge Bioinformatics Center Kyoto University