Sha256: ffcbf17cafc144ced9131f14349ad8d334e1dfae5b09914f47ece234683031ac

Contents?: true

Size: 801 Bytes

Versions: 13

Compression:

Stored size: 801 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'optparse'
require_relative '../lib/fusuma'

option = {}
opt = OptionParser.new

opt.on('-c', '--config=path/to/file',
       'Use an alternative config file') do |v|
  option[:config_path] = v
end

opt.on('-d', '--daemon',
       'Daemonize process') do |v|
  option[:daemon] = v
end

opt.on('-l', '--list-devices',
       'List available devices') do |v|
  option[:list] = v
end

opt.on('--device="Device name"',
       'Open the given device only (DEPRECATED)') do |v|
  option[:device] = v
end

opt.on('-v', '--verbose',
       'Show details about the results of running fusuma') do |v|
  option[:verbose] = v
end

opt.on('--version', 'Show fusuma version') do |v|
  option[:version] = v
end

opt.parse!(ARGV)

Fusuma::Runner.run(option)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fusuma-2.0.5 exe/fusuma
fusuma-2.0.4 exe/fusuma
fusuma-2.0.3 exe/fusuma
fusuma-2.0.2 exe/fusuma
fusuma-2.0.1 exe/fusuma
fusuma-2.0.0 exe/fusuma
fusuma-2.0.0.pre2 exe/fusuma
fusuma-2.0.0.pre exe/fusuma
fusuma-1.11.1 exe/fusuma
fusuma-1.10.2 exe/fusuma
fusuma-1.10.1 exe/fusuma
fusuma-1.10.0 exe/fusuma
fusuma-1.9.0 exe/fusuma