1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Update hist command to the new Slop API

It was creating a new Slop instance for its own needs, thus and so
remove the previous abstraction for Slop commands. The
`ClassCommand::Options` class should be removed because we don't need it
anymore.
This commit is contained in:
Kyrylo Silin 2013-01-14 19:17:58 +02:00
parent 61326c0089
commit 83aebd1505

View file

@ -140,7 +140,7 @@ class Pry
def check_for_juxtaposed_replay(replay_sequence)
if replay_sequence =~ /\Ahist(?:ory)?\b/
# Create *fresh* instance of Options for parsing of "hist" command.
_slop = ClassCommand::Options.new(self.slop)
_slop = self.slop
_slop.parse replay_sequence.split(' ')[1..-1]
if _slop.present?(:r)