summaryrefslogtreecommitdiff
path: root/sample/optparse/opttest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/optparse/opttest.rb')
-rw-r--r--sample/optparse/opttest.rb2
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}"}