mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix bug
This commit is contained in:
parent
6bdfa4c28e
commit
bd8c37292d
1 changed files with 2 additions and 1 deletions
3
mpw-ssh
3
mpw-ssh
|
@ -20,6 +20,8 @@ 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)
|
||||||
|
|
||||||
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]"
|
||||||
|
@ -43,7 +45,6 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
search = ARGV[0]
|
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]"
|
||||||
|
|
Loading…
Add table
Reference in a new issue