5 ).each &method(:require)
12 def usage! o = $stderr, c = 1
13 o.puts <<-EOS.gsub(/^\t\t/, '')
14 #{$0} [-h|-help|--help] [-d] [--] $files
15 -d delets this (if the sweep is successful)
36 def usage! o = $stderr, c = 1
37 o.puts <<-EOS.gsub(/^\t\t/, '')
38 #{$0} [-h|-help|--help] [-l $host:$port] [-D] [--] $files
42 The following options are passed through to rainbows:
44 Address to listen on. Defaults to localhost:8891
46 Daemonize the process.
48 Rack env to use. (Defaults to "production".)
53 TopDir = File.dirname(__dir__)
55 "-c" => "#{TopDir}/conf/rainbows.rb",
56 "-l" => "localhost:8891",
64 when '-h', '-help', '--help'
67 rainbow_args[args[0]] = args[1]
68 usage! if args[1].nil?
71 rainbow_flags << args[0]
86 *rainbow_args.to_a.flatten,