Fix confusing syntax
This commit is contained in:
parent
84b231d729
commit
240ea58411
6
rubberin
6
rubberin
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue