forked from paul/rubberin
Merge branch 'master' of git.luon.net:/git/users/paul/rubberin
This commit is contained in:
commit
926e4ca4ec
10
rubberin
10
rubberin
|
@ -112,9 +112,10 @@ Version = '0.6'
|
|||
# Determine the compile mode from the options.
|
||||
mode = :dvi
|
||||
opts = GetoptLong.new(
|
||||
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--ps", "-p", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--pdf", "-d", GetoptLong::NO_ARGUMENT ])
|
||||
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--ps", "-p", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--pdf", "-d", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--version", "-v", GetoptLong::NO_ARGUMENT ])
|
||||
opts.ordering = GetoptLong::REQUIRE_ORDER
|
||||
opts.quiet = true
|
||||
opts.each do |opt, arg|
|
||||
|
@ -128,6 +129,9 @@ opts.each do |opt, arg|
|
|||
mode = if mode == :ps then :pspdf
|
||||
else :pdf
|
||||
end
|
||||
when "--version"
|
||||
puts "#{Program} #{Version}"
|
||||
exit 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue