From aab1ba1365e1132717cbd8ae8a92014b1bba0854 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 20 Mar 2004 16:45:41 +0000 Subject: * eval.c (rb_require_safe): preserve old ruby_errinfo. [ruby-talk:95409] * eval.c (rb_f_raise): should not clear backtrace information if exception object already have one. * parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2] this change is done by Nobuyoshi Nakada . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/optparse/opttest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb index 61b157bce5..683c450d57 100644 --- a/sample/optparse/opttest.rb +++ b/sample/optparse/opttest.rb @@ -79,7 +79,7 @@ ARGV.options do end pp self -(print ARGV.options; exit) if @quit +begin print ARGV.options; exit end if @quit ARGV.options = nil # no more parse puts "ARGV = #{ARGV.join(' ')}" if !ARGV.empty? #opts.variable.each {|sym| puts "#{sym} = #{opts.send(sym).inspect}"} -- cgit v1.2.3