From 4217d18e522f73063199156f58c3154a83c96039 Mon Sep 17 00:00:00 2001 From: wjoe Date: Tue, 7 Feb 2012 13:20:38 +0000 Subject: Historic commit 2.0.4 (07-Feb-2012 12:42) --- blatweet.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/blatweet.rb b/blatweet.rb index 32dd1e1..4a34f2d 100644 --- a/blatweet.rb +++ b/blatweet.rb @@ -11,12 +11,17 @@ number_of_tweets = 1 message = nil limit = false debug = false -version = 'v2.0.3' +version = 'v2.0.4' help = false irc_nick = nil ops = nil -STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == [] +if ARGV == [] + stdin = STDIN.gets.split(' ') + ARGS << stdin[0] + ARGS << stdin[1] + stdin[2].split(' ').each{|arg| ARGV << arg} +end args = ARGV.dup options = OptionParser.new do |opts| -- cgit v1.2.3