> > c:\temp> This thread is a testament to why I wrote the getopt package: # test.rb require 'getopt/long' include Getopt opts = Long.getopts(['--size', '-s', REQUIRED]) p opts['size'] C:\ruby test.rb -s 'Very Big' "Very Big" C:\ gem install getopt :) Regards, Dan
on 2006-03-20 22:13
on 2006-03-20 22:23
Works! Thanks :)
on 2006-03-20 22:29
PS: Thanks to everyone for the help! THought I was crazy here...