16 lines
238 B
Ruby
Executable file
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
|