diff options
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 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}"} |