pry/pry — Issue #374: show-method -h raises an exception, etc
Author: banister
Created: 2011-12-14 05:22:07+00:00
State: open
Labels: bug

Some commands raise an exception with `-h` flag, other commands do not, see:

```

4] (pry) main: 0> show-method -h
ArgumentError: no id given
from /Users/john/.rvm/gems/ruby-1.9.2-p180/gems/slop-2.4.0/lib/slop.rb:695:in `method_missing'
[5] (pry) main: 0> show-doc -h
ArgumentError: no id given
from /Users/john/.rvm/gems/ruby-1.9.2-p180/gems/slop-2.4.0/lib/slop.rb:695:in `method_missing'
[6] (pry) main: 0> edit-method -h
ArgumentError: no id given
from /Users/john/.rvm/gems/ruby-1.9.2-p180/gems/slop-2.4.0/lib/slop.rb:695:in `method_missing'
[7] (pry) main: 0> hist -h
Usage: hist [--replay START..END] [--clear] [--grep PATTERN] [--head N] [--tail N] [--help] [--save [START..END] file.txt]

options:

-n, --no-numbers Omit line numbers.
-g, --grep A pattern to match against the history.
--head Display the first N items of history.
-t, --tail Display the last N items of history.
-s, --show Show the history corresponding to the history line (or range of lines).
-e, --exclude Exclude pry commands from the history.
-r, --replay The line (or range of lines) to replay.
--save Save history to a file. --save [start..end] output.txt. Pry commands are excluded from saved history.
-c, --clear Clear the history.
-h, --help Show this message.
[8] (pry) main: 0>

```