Fix confusing syntax

This commit is contained in:
Paul van Tilburg 2022-11-05 15:08:15 +01:00
parent 84b231d729
commit 240ea58411
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 4 additions and 2 deletions

View File

@ -128,8 +128,10 @@ opts.each do |opt, _arg|
when "--ps" when "--ps"
mode = :ps mode = :ps
when "--pdf" when "--pdf"
mode = if mode == :ps then :pspdf mode = if mode == :ps
else :pdf :pspdf
else
:pdf
end end
when "--version" when "--version"
puts "#{PROGRAM} #{VERSION}" puts "#{PROGRAM} #{VERSION}"