1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

fix bug when exit with help message

This commit is contained in:
Adrien Waksberg 2017-02-21 22:38:55 +01:00
parent a117e8a618
commit c63d91facc

View file

@ -48,7 +48,7 @@ command = "#{bin_dir}/mpw-#{ARGV[0]}"
if Dir.glob("#{bin_dir}/mpw-*").include?("#{command}")
begin
Kernel.load(command)
rescue Exception => e
rescue OptionParser::ParseError => e
puts "#{I18n.t('display.error')}: #{e}".red
end
else