diff options
author | wjoe <joe@lc8n.com> | 2012-02-07 13:21:12 +0000 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2012-02-07 13:21:12 +0000 |
commit | 328993782b8261c4915a225a492be9b8cd26b358 (patch) | |
tree | 4e5cbbb7da0febfa08ea8bd7286f68be07a2c8f6 | |
parent | 4217d18e522f73063199156f58c3154a83c96039 (diff) |
Historic commit 2.0.5 (07-Feb-2012 12:55)
-rw-r--r-- | blatweet.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/blatweet.rb b/blatweet.rb index 4a34f2d..bb7a2e8 100644 --- a/blatweet.rb +++ b/blatweet.rb @@ -11,17 +11,14 @@ number_of_tweets = 1 message = nil limit = false debug = false -version = 'v2.0.4' +version = 'v2.0.5' help = false irc_nick = nil ops = nil -if ARGV == [] - stdin = STDIN.gets.split(' ') - ARGS << stdin[0] - ARGS << stdin[1] - stdin[2].split(' ').each{|arg| ARGV << arg} -end +ARGV[2].split(' ').each{|arg| ARGV << arg} if ARGV[2] +ARGV.delete_at 2 +STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == [] args = ARGV.dup options = OptionParser.new do |opts| |