Skip to content

Commit

Permalink
Rename variable to to to_
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Dec 24, 2024
1 parent 918f705 commit d8886f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/deepl/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ module DeepL
opt.source_lang = from.upcase
end

on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to|
opt.target_lang = to.upcase
on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to_|
opt.target_lang = to_.upcase
end

on("-g", "--glossary NAME", "Glossary name") do |name|
Expand Down Expand Up @@ -105,8 +105,8 @@ module DeepL
opt.source_lang = from.upcase
end

on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to|
opt.target_lang = to.upcase
on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to_|
opt.target_lang = to_.upcase
end

_on_debug_
Expand Down Expand Up @@ -225,11 +225,11 @@ module DeepL
end
end

on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to|
if to.empty?
on("-t", "--to [LANG]", "Target language [#{opt.target_lang}]") do |to_|
if to_.empty?
opt.action = Action::ListTargetLanguages
else
opt.target_lang = to.upcase
opt.target_lang = to_.upcase
end
end

Expand Down

0 comments on commit d8886f8

Please sign in to comment.