1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 05:47:53 +00:00

enable text editor if threre isn't nothing value who has been set

This commit is contained in:
Adrien Waksberg 2017-05-20 15:30:19 +02:00
parent efff66b12e
commit 6541931b79

View file

@ -93,6 +93,8 @@ end.parse!
config = MPW::Config.new(options[:config]) config = MPW::Config.new(options[:config])
cli = MPW::Cli.new(config) cli = MPW::Cli.new(config)
options[:text_editor] = true if values.empty?
cli.load_config cli.load_config
cli.get_wallet(options[:wallet]) cli.get_wallet(options[:wallet])
cli.decrypt cli.decrypt