mirror of
https://github.com/nishiki/manage-password.git
synced 2025-03-19 21:04:35 +00:00
fix bug when exit with help message
This commit is contained in:
parent
a117e8a618
commit
c63d91facc
1 changed files with 1 additions and 1 deletions
2
bin/mpw
2
bin/mpw
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue