From: Nexos Date: 2007-03-21T07:20:04+09:00 Subject: Issue with Getopt-declare incorrect parameter specification Hi, I'm having a weird problem with the "Getopt-declare" library. I wrote: require 'rubygems' require 'Getopt/Declare' pattern = ".*" args = Getopt::Declare.new(%q@ -p some regexp; defaults to ".*" (explanation) { pattern = regexp } @) When I run: << ruby script.rb -p '[a-c].*' >> , I get the following error: "Error: incorrect specification of '-p' parameter" Has someone an explanation for this ? Thanks in advance, Fr�d�ric