diff options
author | wjoe <joe@lc8n.com> | 2012-02-07 13:20:38 +0000 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2012-02-07 13:20:38 +0000 |
commit | 4217d18e522f73063199156f58c3154a83c96039 (patch) | |
tree | f070a02732f36f3373b707a805df1c3aad2d2ed8 | |
parent | c74ccb48bf7d32c979cf6e1babf08e04208630cb (diff) |
Historic commit 2.0.4 (07-Feb-2012 12:42)
-rw-r--r-- | blatweet.rb | 9 |
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| |