exe/fusuma in fusuma-0.7.0 vs exe/fusuma in fusuma-0.7.1

- old
+ new

@@ -5,12 +5,12 @@ option = {} OptionParser.new do |opt| opt.on('-c', '--config=path/to/file', - 'Use an alternative config file') do |config| - option[:config] = config + 'Use an alternative config file') do |config_path| + option[:config_path] = config_path end opt.on('-d', '--daemon', 'Daemonize process') do |daemon| @@ -22,15 +22,11 @@ '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 + 'Show fusuma version') do |version| + option[:version] = version end opt.parse!(ARGV) end