#!/usr/bin/env jruby -J-XstartOnFirstThread
# @package MiGA # @license Artistic-2.0
$:.unshift File.expand_path(“../../lib”, __FILE__) require “miga/common” require “miga/gui” require “optparse”
o = {:q=>true} OptionParser.new do |opt|
opt.banner = <<BAN
Launches the Graphical User Interface of MiGA.
Usage: #{$0} [options] BAN
opt.separator "" opt.on("-v", "--verbose", "Print additional information to STDERR."){ o[:q]=false } opt.on("-d", "--debug INT", "Print debugging information to STDERR.") do |v| v.to_i>1 ? MiGA::MiGA.DEBUG_TRACE_ON : MiGA::MiGA.DEBUG_ON end opt.on("-h", "--help", "Display this screen.") do puts opt exit end opt.separator ""
end.parse!
### MAIN begin
$stderr.puts "Loading Shoes." unless o[:q] MiGA::GUI.init
rescue => err
$stderr.puts "Exception: #{err}\n\n" err.backtrace.each { |l| $stderr.puts l + "\n" } err
end