Sha256: 86cb88dfb33cc9faf7461fcd3a463701e9880acb3a60c818d8233daef6c0b513
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require_relative '../lib/fusuma' option = {} OptionParser.new do |opt| opt.on('-c', '--config=path/to/file', 'Use an alternative config file') do |config| option[:config] = config end opt.on('-d', '--daemon', 'Daemonize process') do |daemon| option[:daemon] = daemon end opt.on('-v', '--verbose', 'Show details about the results of running fusuma') do |verbose| option[:verbose] = verbose end opt.on('--version', 'Show fusuma version') do |_version| puts "Fusuma: #{Fusuma::VERSION}" puts "OS: #{`uname -rsv`}" puts "Distribution: #{`cat /etc/issue`}" puts "Desktop session: #{`echo $DESKTOP_SESSION`}" exit 0 end opt.parse!(ARGV) end Fusuma::Runner.run(option)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fusuma-0.7.0 | exe/fusuma |
fusuma-0.6.0 | exe/fusuma |