lib/tw/app/main.rb in tw-0.3.9 vs lib/tw/app/main.rb in tw-0.4.0
- old
+ new
@@ -47,12 +47,15 @@
arg 'user:list', 'show user list'
arg 'user:default', 'set default user'
arg :timeline, 'show timeline', :alias => :tl
arg :dm, 'show direct messages'
arg 'dm:to', 'create direct message'
+ arg :favorite, 'favorite tweet', :alias => :fav
+ arg :retweet, 'retweet', :alias => :rt
arg :search, 'search public timeline', :alias => :s
arg :stream, 'show user stream', :alias => :st
+ arg :status_id, 'show status_id', :alias => :id
arg :pipe, 'pipe tweet'
arg :format, 'output format', :default => 'text'
arg :silent, 'silent mode'
arg :conf, 'config file', :default => Tw::Conf.conf_file
arg :version, 'show version', :alias => :v
@@ -86,13 +89,16 @@
STDERR.puts " tw --stream"
STDERR.puts " tw --stream:filter=ruby,java"
STDERR.puts " tw --dm:to=username \"hello!\""
STDERR.puts " tw --format=json"
STDERR.puts ' tw --format="@#{user} #{text} - http://twitter.com/#{user}/#{id}"'
+ STDERR.puts "fav tw --fav=334739319170428929"
+ STDERR.puts "rt tw --rt=334739319170428929"
on_exit
end
Render.silent = @parser[:silent]
+ Render.show_status_id = @parser[:status_id]
Tw::Conf.conf_file = @parser[:conf]
regist_cmds
cmds.each do |name, cmd|