lib/clamp/command.rb in clamp-0.6.4 vs lib/clamp/command.rb in clamp-0.6.5
- old
+ new
@@ -138,9 +138,11 @@
rescue Clamp::HelpWanted => e
puts e.command.help
rescue Clamp::ExecutionError => e
$stderr.puts "ERROR: #{e.message}"
exit(e.status)
+ rescue SignalException => e
+ exit(128 + e.signo)
end
end
end