summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blatweet.rb9
1 files 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|