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

add option to disable pinmode

This commit is contained in:
Adrien Waksberg 2017-04-05 00:03:53 +02:00
parent 45ead1e24e
commit 621819203f

View file

@ -60,10 +60,14 @@ OptionParser.new do |opts|
values[:lang] = lang
end
opts.on('-P', '--pinmode', I18n.t('option.pinmode')) do
opts.on('-P', '--enable-pinmode', I18n.t('option.pinmode')) do
values[:pinmode] = true
end
opts.on('-p', '--disable-pinmode', I18n.t('option.disable_pinmode')) do
values[:pinmode] = false
end
opts.on('-w', '--wallet-dir PATH', I18n.t('option.wallet_dir')) do |wallet_dir|
values[:wallet_dir] = wallet_dir
end