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:
parent
61326c0089
commit
83aebd1505
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue