bin/translate in google-translate-1.0.1 vs bin/translate in google-translate-1.1.0
- old
+ new
@@ -13,18 +13,21 @@
TranslateCLI.start ["list"]
end
else
params = []
say = ENV['say'] ? (ENV['say'] == 'true') : false
+ extra = ENV['extra'] ? (ENV['extra'] == 'true') : false
index = 0
while index < ARGV.size do
param = ARGV[index]
if param =~ /--say/ or param =~ /-s/
say = true
+ elsif param =~ /--extra/ or param =~ /-e/
+ extra = true
else
params << param
end
index = index + 1
@@ -37,7 +40,7 @@
["auto", $1, params.join(' ')]
else
['en', '', '']
end
- TranslateCLI.start ["translate", "--say=#{say}", from.to_sym, to.to_sym, text]
+ TranslateCLI.start ["translate", "--say=#{say}", "--extra=#{extra}", from.to_sym, to.to_sym, text]
end