diff --git a/MPW/UI/Cli.rb b/MPW/UI/Cli.rb index f364b9a..3a3502c 100644 --- a/MPW/UI/Cli.rb +++ b/MPW/UI/Cli.rb @@ -17,7 +17,7 @@ class Cli # Constructor # @args: lang -> the operating system language # config_file -> a specify config file - def initialize(lang, config) + def initialize(config) @config = config end diff --git a/mpw b/mpw index a9a784a..3c206de 100755 --- a/mpw +++ b/mpw @@ -113,7 +113,7 @@ end.parse! config = MPW::Config.new(options[:config]) check_error = config.checkconfig -cli = Cli.new(lang, config) +cli = Cli.new(config) # Setup a new config if !check_error || !options[:setup].nil? diff --git a/mpw-ssh b/mpw-ssh index 079771e..1af952d 100755 --- a/mpw-ssh +++ b/mpw-ssh @@ -65,7 +65,7 @@ end.parse! config = MPW::Config.new(options[:config]) check_error = config.checkconfig -cli = CliSSH.new(lang, config) +cli = CliSSH.new(config) cli.login = options[:login] cli.server = options[:server] cli.port = options[:port]