lib/tw/app/main.rb in tw-0.4.8 vs lib/tw/app/main.rb in tw-0.4.9
- old
+ new
@@ -74,11 +74,11 @@
end
end
if @parser.has_option? :help
STDERR.puts "Tw - Twitter client on Ruby v#{Tw::VERSION}"
- STDERR.puts " http://shokai.github.com/tw"
+ STDERR.puts " http://shokai.github.io/tw"
STDERR.puts
STDERR.puts @parser.help
STDERR.puts
STDERR.puts "e.g."
STDERR.puts "tweet tw hello world"
@@ -88,10 +88,11 @@
STDERR.puts " tw --search=ruby"
STDERR.puts " tw --stream"
STDERR.puts " tw --stream:filter=ruby,java"
STDERR.puts " tw --dm:to=username \"hello!\""
STDERR.puts "id tw @shokai --id"
+ STDERR.puts " tw @shokai --id=334749349588377601"
STDERR.puts 'reply tw "@shokai wow!!" --id=334749349588377601'
STDERR.puts " tw --fav=334749349588377601"
STDERR.puts " tw --rt=334749349588377601"
STDERR.puts " tw --format=json"
STDERR.puts ' tw --format="@#{user} #{text} - http://twitter.com/#{user}/#{id}"'
@@ -109,10 +110,14 @@
cmd.call @parser[name], @parser
end
auth
if @parser.argv.size < 1
- Render.display client.mentions, @parser[:format]
+ if @parser.has_param? :status_id
+ client.show_status @parser[:status_id]
+ else
+ Render.display client.mentions, @parser[:format]
+ end
elsif all_requests?(@parser.argv)
Render.display Parallel.map(@parser.argv, :in_threads => @parser.argv.size){|arg|
if user = username?(arg)
res = client.user_timeline user
elsif (user, list = listname?(arg)) != false