mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rely on slop providing help
This commit is contained in:
parent
09011ef726
commit
316720974c
1 changed files with 1 additions and 6 deletions
7
bin/pry
7
bin/pry
|
@ -10,7 +10,7 @@ rescue LoadError
|
||||||
require 'pry'
|
require 'pry'
|
||||||
end
|
end
|
||||||
|
|
||||||
opts = Slop.parse do
|
opts = Slop.parse(:help => true) do
|
||||||
banner %{Usage: pry [OPTIONS]
|
banner %{Usage: pry [OPTIONS]
|
||||||
Start a Pry session.
|
Start a Pry session.
|
||||||
See: `https://github.com/banister` for more information.
|
See: `https://github.com/banister` for more information.
|
||||||
|
@ -43,11 +43,6 @@ See: `https://github.com/banister` for more information.
|
||||||
true,
|
true,
|
||||||
:default => "TOPLEVEL_BINDING"
|
:default => "TOPLEVEL_BINDING"
|
||||||
)
|
)
|
||||||
|
|
||||||
on :h, :help, "This message" do
|
|
||||||
puts help
|
|
||||||
exit
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# invoked via cli
|
# invoked via cli
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue