Sha256: 4ab9674657cca74eea9345a981d66beb43384afb25da213d4844e25a7871f3fc

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

#!/usr/bin/env ruby

require 'pixo'
require 'pixo/application'
require 'optparse'


options = {}
OptionParser.new do |opts|
  opts.on('-f', '--fullscreen', 'Start in fullscreen mode') { |v| options[:fullscreen] = v }
end.parse!


app = Pixo::Application.new(options[:fullscreen])

Signal.trap('INT')  { app.shutdown }
Signal.trap('TERM') { app.shutdown }

app.run

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pixo-0.4.5 exe/pixo
pixo-0.4.4 exe/pixo
pixo-0.4.3 exe/pixo