Sha256: 8cec9a80f2ca5a8a9e94398faa57c60e57393e387dee679d8402119eb91e2cab

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

#!/usr/bin/env ruby

require 't'

# Output message to $stderr, prefixed with the program name
def pute(message="")
  $stderr.puts "#{$0}: #{message}"
end

begin
  T::CLI.start(ARGV)
rescue Interrupt
  pute "Quitting..."
  exit 1
rescue OAuth::Unauthorized
  pute "Authorization failed"
  exit 1
rescue Twitter::Error::Unauthorized => error
  pute "#{error.message} Run `#{$0} authorize --consumer-key=CONSUMER_KEY --consumer-secret=CONSUMER_SECRET` to authorize."
  exit 1
rescue Twitter::Error => error
  pute error.message
  exit 1
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
t-0.9.8 bin/t
t-0.9.7 bin/t