From 328993782b8261c4915a225a492be9b8cd26b358 Mon Sep 17 00:00:00 2001 From: wjoe Date: Tue, 7 Feb 2012 13:21:12 +0000 Subject: Historic commit 2.0.5 (07-Feb-2012 12:55) --- blatweet.rb | 11 ++++------- 1 file 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| -- cgit v1.2.3