1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

clean construtor Cli

This commit is contained in:
nishiki 2014-09-07 10:00:46 +02:00
parent 3807c2866c
commit e8590912a2
3 changed files with 3 additions and 3 deletions

View file

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

2
mpw
View file

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

View file

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