#!/usr/bin/ruby.ruby2.5 

# FIX ME, killing oxidized needs -9
trap("INT") { exit } # sinatra will otherwise steal this from us

begin
  require_relative '../lib/oxidized/cli'
  Oxidized::CLI.new.run
rescue StandardError => error
  warn error.to_s
  debug = Oxidized.config.debug rescue true
  raise if debug

  exit 1
end
