diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-20 16:45:41 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-20 16:45:41 +0000 |
commit | 45f539317e3b65a41d85236b9cb5e8ad0e6daf31 (patch) | |
tree | 77a3e260242dc179917075ae3e9b73f75a60fd3c /sample | |
parent | fdb5c5e28de29952c4fc2988b38bbd1294855ce8 (diff) | |
download | ruby-45f539317e3b65a41d85236b9cb5e8ad0e6daf31.tar.gz ruby-45f539317e3b65a41d85236b9cb5e8ad0e6daf31.tar.xz ruby-45f539317e3b65a41d85236b9cb5e8ad0e6daf31.zip |
* 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 <nobu@ruby-lang.org>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/optparse/opttest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb index 61b157bce..683c450d5 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}"} |