Sha256: 3f561a79abc749dd219f2d4b32e1acfffd9c3565b58f0b0e672964cecde86f75
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 Bytes
Contents
module LitmusPaper module CLI class Admin class Command def self._default_options options = { :port => 9292, :host => '127.0.0.1' } end def self._extend_default_parser(options, &block) OptionParser.new do |opts| block.call(opts) opts.on("-p", "--port=port", Integer, "Port litmus is running on", "Default: 9292") do |port| options[:port] = port end opts.on("-h", "--host=ip", String, ":Host litmus is running on", "Default: localhost") do |host| options[:host] = host end opts.on("--help", "Show this help message.") { puts opts; exit } end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems