From af5317a9d7e269e03adc159d93f452f2414d8b12 Mon Sep 17 00:00:00 2001 From: nishiki Date: Thu, 26 Dec 2013 18:20:15 +0100 Subject: [PATCH] fix help message --- mpw-ssh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mpw-ssh b/mpw-ssh index c7962e1..eea0f05 100755 --- a/mpw-ssh +++ b/mpw-ssh @@ -20,9 +20,6 @@ end I18n.load_path = Dir["#{APP_ROOT}/i18n/#{lang}.yml"] I18n.locale = lang.to_sym -cli = CliSSH.new(lang) -search = ARGV[0] - options = {} OptionParser.new do |opts| opts.banner = "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" @@ -45,6 +42,9 @@ OptionParser.new do |opts| end end.parse! +search = ARGV[0] +cli = CliSSH.new(lang) + if ARGV.length < 1 puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" exit 2