Sha256: b969daa3a515b36da4b1d6484f46b24147a6c79cb3acad91ed0ad2ce69bfbcc7
Contents?: true
Size: 602 Bytes
Versions: 11
Compression:
Stored size: 602 Bytes
Contents
#!/usr/bin/env ruby require "slop" argv = ARGV.dup slop = Slop.parse do banner "$ leandocument [options]" on :p, :port=, "port number for http server (default is 4567)" on :o, :output=, "HTML output path(option)" on :l, :lang=, "Target language(option)" end begin slop.parse!(argv) rescue => e puts e exit! end options = slop.to_hash options.delete(:help) options[:port] ||= 4567 $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "leandocument" unless options[:output].nil? Leandocument::Server.output(options) else Leandocument::Server.start(options) end
Version data entries
11 entries across 11 versions & 1 rubygems