summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2012-02-07 13:11:29 +0000
committerwjoe <joe@lc8n.com>2012-02-07 13:11:29 +0000
commita3a4709eb1e4b9d98b8c174ee809995ed1d8a72a (patch)
tree20864b201e1484210e727044935db77a8b767683
parentf417a871ab16e63a64e07a4ff29a1ab39ef764f5 (diff)
Historic commit 1.0.3 (02-Feb-2012 17:05)
-rw-r--r--blatweet.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/blatweet.rb b/blatweet.rb
index 46b2112..fd9106c 100644
--- a/blatweet.rb
+++ b/blatweet.rb
@@ -5,6 +5,7 @@ require 'optparse'
username = nil
number_of_tweets = 1
output = []
+version = 1.03
STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == []
args = ARGV.dup
@@ -14,6 +15,8 @@ options = OptionParser.new do |opts|
opts.on( "-u", "--username USERNAME", "Twitter username to search for." ) { |u| username = u }
opts.on( "-n", "--number NO_OF_TWEETS", "Number of tweets to return." ) { |n| number_of_tweets = n }
opts.on( '-h', '--help', 'Display this screen' ) { puts opts; exit }
+ opts.on( '-l', '--limit', 'Display remaining hits' ) { puts Twitter.rate_limit_status.remaining_hits.to_s + " tweets remaining."; exit }
+ opts.on( '-v', '--version', 'Display program version' ) { puts version }
end;options.parse!
if args == []