LogAn/bin/loganinc
2010-03-29 11:50:59 +02:00

16 lines
238 B
Ruby
Executable file

#!/usr/bin/ruby
require 'logan'
require 'logan/inc'
opts = {}
opts[:server] = if ARGV[1]
ARGV
elsif ARGV[0]
['localhost', ARGV[1]]
else %w[localhost 1087]
end
opts[:server][1] = opts[:server][1].to_i
LogAn::Inc::Main.main *opts