rely on slop providing help

This commit is contained in:
Lee Jarvis 2011-04-24 15:33:34 +01:00
parent 09011ef726
commit 316720974c
1 changed files with 1 additions and 6 deletions

View File

@ -10,7 +10,7 @@ rescue LoadError
require 'pry'
end
opts = Slop.parse do
opts = Slop.parse(:help => true) do
banner %{Usage: pry [OPTIONS]
Start a Pry session.
See: `https://github.com/banister` for more information.
@ -43,11 +43,6 @@ See: `https://github.com/banister` for more information.
true,
:default => "TOPLEVEL_BINDING"
)
on :h, :help, "This message" do
puts help
exit
end
end
# invoked via cli