injekt/slop — Issue #47: Printing help from an InvalidOptionError rescue
Author: clauden
Created: 2012-01-18 02:26:24+00:00
State: open

Maybe I'm approaching this the wrong way, please advise:

```ruby
begin
opts = Slop.parse(:strict => true) do
on :d, :destdir=, 'destination directory'
end
rescue Slop::InvalidOptionError => x
puts x.to_s
# how to do the equivalent of opts.help in here?
end
```