From: nobu.nokada@... Date: 2002-07-19T07:22:48+09:00 Subject: Re: Q: "print usage_msg, exit 1 if error_flag" does not workO Hi, At Fri, 19 Jul 2002 01:54:55 +0900, Dave Thomas wrote: > > (print error_message; exit 1) if error_flag > > > > > Or, if this is something that happens more than once, perhaps express > the intent: > > def fatal_error(msg) > puts msg > exit 1 > end abort in 1.7 does it. $ ruby-1.7 -e 'abort "Hi!"'; echo $? Hi! 1 -- Nobu Nakada