# File lib/t/cli.rb, line 526 def open(user) require 'launchy' if options['id'] user = client.user(user.to_i) Launchy.open("https://twitter.com/#{user.screen_name}", :dry_run => options['display-url']) elsif options['status'] status = client.status(user.to_i, :include_my_retweet => false) Launchy.open("https://twitter.com/#{status.from_user}/status/#{status.id}", :dry_run => options['display-url']) else Launchy.open("https://twitter.com/#{user.strip_ats}", :dry_run => options['display-url']) end end