From bd8c37292d3750d7212884ea394a41d7ea4f86cd Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 27 Dec 2013 10:58:59 +0100 Subject: [PATCH] fix bug --- mpw-ssh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpw-ssh b/mpw-ssh index eea0f05..64f09cf 100755 --- a/mpw-ssh +++ b/mpw-ssh @@ -20,6 +20,8 @@ end I18n.load_path = Dir["#{APP_ROOT}/i18n/#{lang}.yml"] I18n.locale = lang.to_sym +cli = CliSSH.new(lang) + options = {} OptionParser.new do |opts| opts.banner = "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" @@ -43,7 +45,6 @@ OptionParser.new do |opts| end.parse! search = ARGV[0] -cli = CliSSH.new(lang) if ARGV.length < 1 puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"