From: Hacksaw Date: 2003-12-16T22:48:11+09:00 Subject: rescue block doesn't get run This code snippet processes the options correctly, but if I leave off a required argument, it fails run my rescue block. Why is that? begin opts = GetoptLong.new( [ "--in", "-f", GetoptLong::REQUIRED_ARGUMENT ], [ "--out", "-o", GetoptLong::REQUIRED_ARGUMENT ], [ "--version", GetoptLong::NO_ARGUMENT ], [ "--help", "-h", "-?", GetoptLong::NO_ARGUMENT ] ) rescue GetoptLong::MissingArgument $stderr.print "Missing Argument" raise end -- Let us find clean and cheerful friends. http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD