From 3e9e5e18d5dd0bb7b1e26522a9ac5b16230c9e29 Mon Sep 17 00:00:00 2001
From: nishiki <nishiki@yaegashi.fr>
Date: Tue, 29 Apr 2014 23:24:05 +0200
Subject: [PATCH] fix bug: generate password

---
 mpw | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mpw b/mpw
index 6db35f0..a9a784a 100755
--- a/mpw
+++ b/mpw
@@ -12,6 +12,7 @@ require 'i18n'
 APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
 require "#{APP_ROOT}/MPW/UI/Cli"
 require "#{APP_ROOT}/MPW/Config"
+require "#{APP_ROOT}/MPW/MPW"
 
 # --------------------------------------------------------- #
 # Set local
@@ -95,7 +96,7 @@ OptionParser.new do |opts|
 	end
 
 	opts.on('-G', '--generate-password [LENGTH]', I18n.t('option.generate_password')) do |length|
-		puts MPW::password(length)
+		puts MPW::MPW::password(length)
 		exit 0
 	end