summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Graham <bcgraham+github@gmail.com>2021-06-14 09:48:54 -0400
committerBrian Graham <bcgraham+github@gmail.com>2021-06-14 09:54:48 -0400
commit2146a6f9721dd29009a4b5238f73342748645adf (patch)
tree99c6446b15be830a9e1a336674ca3284b248b861 /lib
parentf03aefb418d3b5d7bf37a005aff8a5c4bdb1bbbd (diff)
downloadpry-2146a6f9721dd29009a4b5238f73342748645adf.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/cli.rb2
1 files changed, 1 insertions, 1 deletions
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