add choice wallet

This commit is contained in:
nishiki 2016-05-07 10:04:07 +02:00
parent f724f09957
commit 6a1d3a8921
2 changed files with 38 additions and 6 deletions
bin

View file

@ -113,7 +113,7 @@ end.parse!
config = MPW::Config.new(options[:config])
check_error = config.checkconfig
cli = Cli.new(config, options[:wallet])
cli = Cli.new(config)
# Setup a new config
if not check_error or not options[:setup].nil?
@ -122,6 +122,7 @@ elsif not config.check_gpg_key?
cli.setup_gpg_key
end
cli.get_wallet(options[:wallet])
cli.decrypt
# Display the item's informations