Sha256: e0af7db6eb304f1c1643d2f1b2089f5783a1eaf4e044eddf99161659024b73c0
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative '../lib/quiq' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = 'Usage: quiq [options]' opts.on('-p', '--path [PATH|DIR]", "Location of the workers to require') do |path| options[:path] = path end opts.on('-q', '--queues [NAMES]", "Comma-separated list of queues to fetch jobs from') do |queues| options[:queues] = queues.split(',') end opts.on '-v', '--version', 'Output version and exit' do |arg| puts "Quiq #{Quiq::VERSION}" exit end opts.on_tail('-h', '--help', 'Show this message') do puts opts exit end end.parse! begin Quiq.run(options) rescue warn $!.message warn $!.backtrace.join("\n") exit 1 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quiq-0.1.0 | bin/quiq |