Skip to content

Commit

Permalink
Update hist command to the new Slop API
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kyrylo committed Jan 14, 2013
1 parent 61326c0 commit 83aebd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/commands/hist.rb
Expand Up @@ -140,7 +140,7 @@ def process_replay
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)
Expand Down

0 comments on commit 83aebd1

Please sign in to comment.