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:
parent
3807c2866c
commit
e8590912a2
3 changed files with 3 additions and 3 deletions
|
@ -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
2
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?
|
||||
|
|
2
mpw-ssh
2
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]
|
||||
|
|
Loading…
Add table
Reference in a new issue