```ruby
begin
  foo
rescue ShowHelpOnlyError
  show_help
  exit
end
```