Sha256: 4167e4c3732de341d15c112541226966d1dbab90efb580e43b9eecab0e179eaa
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
#!/usr/bin/env ruby require 'perus' require 'optparse' options_path = Perus::Server::DEFAULT_SERVER_OPTIONS_PATH ARGV.options do |opts| opts.banner = "Usage: perus-server [options]" opts.on('-c', '--config', String, "Path to config file (default: #{Perus::Server::DEFAULT_SERVER_OPTIONS_PATH})") do |c| options_path = c end opts.on('-h', '--help', 'Prints this help') do puts opts exit end opts.parse! end server = Perus::Server::Server.new(options_path) server.run
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perus-0.1.2 | exe/perus-server |
perus-0.1.1 | exe/perus-server |
perus-0.1.0 | exe/perus-server |