1
0
Fork 0
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:
nishiki 2014-04-29 23:24:05 +02:00
parent d17a8b557e
commit 3e9e5e18d5

3
mpw
View file

@ -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