1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-03-19 12:59:30 +00:00

fix help message

This commit is contained in:
nishiki 2013-12-26 18:20:15 +01:00
parent fb55a4348f
commit af5317a9d7

View file

@ -20,9 +20,6 @@ end
I18n.load_path = Dir["#{APP_ROOT}/i18n/#{lang}.yml"] I18n.load_path = Dir["#{APP_ROOT}/i18n/#{lang}.yml"]
I18n.locale = lang.to_sym I18n.locale = lang.to_sym
cli = CliSSH.new(lang)
search = ARGV[0]
options = {} options = {}
OptionParser.new do |opts| OptionParser.new do |opts|
opts.banner = "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" opts.banner = "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"
@ -45,6 +42,9 @@ OptionParser.new do |opts|
end end
end.parse! end.parse!
search = ARGV[0]
cli = CliSSH.new(lang)
if ARGV.length < 1 if ARGV.length < 1
puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"
exit 2 exit 2