mirror of
https://github.com/jimeh/twhois.git
synced 2026-02-19 02:46:41 +00:00
standardize output of twhois command a bit
This commit is contained in:
@@ -26,10 +26,11 @@ if ARGV.size > 0
|
|||||||
puts " Private Account: #{user.protected ? "Yes" : "No"}"
|
puts " Private Account: #{user.protected ? "Yes" : "No"}"
|
||||||
else
|
else
|
||||||
puts "@#{username}:"
|
puts "@#{username}:"
|
||||||
puts " Not Found"
|
puts " Error: Not Found"
|
||||||
end
|
end
|
||||||
rescue Twhois::InvalidUsername => e
|
rescue Twhois::InvalidUsername => e
|
||||||
puts "\"#{username}\" is not a valid Twitter username"
|
puts "@#{username}:"
|
||||||
|
puts " Error: Invalid Username"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user