#!/usr/bin/env ruby
# frozen_string_literal: true

require "oauth"
require "oauth/cli"

# don't dump a backtrace on a ^C
Signal.trap("INT") do
  puts
  exit(1)
end
ARGV << "help" if ARGV.empty?
command = ARGV.shift

OAuth::CLI.new($stdout, $stdin, $stderr, command, ARGV).run
