mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
remove unused contructor variables
This commit is contained in:
parent
38b5b5ada5
commit
1745585fb8
9 changed files with 9 additions and 13 deletions
|
@ -44,7 +44,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
cli.get_wallet(options[:wallet])
|
||||
cli.decrypt
|
||||
|
|
|
@ -60,7 +60,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, nil, nil)
|
||||
cli = MPW::Cli.new(config, nil)
|
||||
|
||||
if not options[:init].nil?
|
||||
cli.setup(options)
|
||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
opts = { search: options[:pattern],
|
||||
group: options[:group],
|
||||
|
|
|
@ -56,7 +56,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
opts = { search: options[:pattern],
|
||||
group: options[:group],
|
||||
|
|
|
@ -48,7 +48,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
opts = { search: options[:pattern],
|
||||
group: options[:group],
|
||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
opts = { search: options[:pattern],
|
||||
group: options[:group],
|
||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
opts = { search: options[:pattern],
|
||||
group: options[:group],
|
||||
|
|
|
@ -44,6 +44,6 @@ OptionParser.new do |opts|
|
|||
end.parse!
|
||||
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
cli.list_wallet
|
||||
|
|
|
@ -32,13 +32,9 @@ class Cli
|
|||
# Constructor
|
||||
# @args: config -> the config
|
||||
# sync -> boolean for sync or not
|
||||
# clipboard -> enable clopboard
|
||||
# otp -> enable otp
|
||||
def initialize(config, clipboard=true, sync=true, otp=false)
|
||||
def initialize(config,sync=true)
|
||||
@config = config
|
||||
@clipboard = clipboard
|
||||
@sync = sync
|
||||
@otp = otp
|
||||
end
|
||||
|
||||
# Change a parameter int the config after init
|
||||
|
|
Loading…
Add table
Reference in a new issue