mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 13:57:52 +00:00
fix bug: generate password
This commit is contained in:
parent
d17a8b557e
commit
3e9e5e18d5
1 changed files with 2 additions and 1 deletions
3
mpw
3
mpw
|
@ -12,6 +12,7 @@ require 'i18n'
|
||||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||||
require "#{APP_ROOT}/MPW/UI/Cli"
|
require "#{APP_ROOT}/MPW/UI/Cli"
|
||||||
require "#{APP_ROOT}/MPW/Config"
|
require "#{APP_ROOT}/MPW/Config"
|
||||||
|
require "#{APP_ROOT}/MPW/MPW"
|
||||||
|
|
||||||
# --------------------------------------------------------- #
|
# --------------------------------------------------------- #
|
||||||
# Set local
|
# Set local
|
||||||
|
@ -95,7 +96,7 @@ OptionParser.new do |opts|
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.on('-G', '--generate-password [LENGTH]', I18n.t('option.generate_password')) do |length|
|
opts.on('-G', '--generate-password [LENGTH]', I18n.t('option.generate_password')) do |length|
|
||||||
puts MPW::password(length)
|
puts MPW::MPW::password(length)
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue