From 2146a6f9721dd29009a4b5238f73342748645adf Mon Sep 17 00:00:00 2001 From: Brian Graham Date: Mon, 14 Jun 2021 09:48:54 -0400 Subject: Restore `--no-history` CLI flag functionality The `--no-history` option was almost ten years ago, in db649858a, when the object at `Pry.config.history` was still an `OpenStruct` (added in e1d9763c2, just over ten years ago!). The contract on the configuration history object changed in e5556a2be. This commit brings the `--no-history` option up to date with that refactor. --- lib/pry/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/cli.rb b/lib/pry/cli.rb index 0e29f7f0..444a83ad 100644 --- a/lib/pry/cli.rb +++ b/lib/pry/cli.rb @@ -138,7 +138,7 @@ Pry::CLI.add_options do end on "no-history", "Disable history loading" do - Pry.config.history.should_load = false + Pry.config.history_load = false end on "no-color", "Disable syntax highlighting for session" do -- cgit v1.2.1