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"
mode = :ps
when "--pdf"
mode = if mode == :ps then :pspdf
else :pdf
mode = if mode == :ps
:pspdf
else
:pdf
end
when "--version"
puts "#{PROGRAM} #{VERSION}"