Sha256: 0af884cfc64459f641ee831fc69da57aa6df20154f56e76e92a0f2ec19f4ed23

Contents?: true

Size: 1019 Bytes

Versions: 10

Compression:

Stored size: 1019 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('--log=path/to/file',
       'Print logs to file') do |v|
  option[:log_filepath] = v
end

opt.on('--show-config', 'Show config as YAML format which is loaded internally') do |v|
  option[:show_config] = 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

10 entries across 10 versions & 1 rubygems

Version Path
fusuma-3.7.0 exe/fusuma
fusuma-3.6.2 exe/fusuma
fusuma-3.6.1 exe/fusuma
fusuma-3.6.0 exe/fusuma
fusuma-3.5.0 exe/fusuma
fusuma-3.4.0 exe/fusuma
fusuma-3.3.1 exe/fusuma
fusuma-3.3.0 exe/fusuma
fusuma-3.2.0 exe/fusuma
fusuma-3.1.0 exe/fusuma