Merge branch 'master' of git.luon.net:/git/users/paul/rubberin

This commit is contained in:
Paul van Tilburg 2009-07-16 12:02:56 +02:00
commit 926e4ca4ec
1 changed files with 7 additions and 3 deletions

View File

@ -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