summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-22 05:24:46 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-10-22 05:24:46 +0800
commit99455ad490bad5f1cd89d7b0d37a69526a3b85c8 (patch)
tree56fa7753b8b5895ccd7a36358a89cc4a6de5c640
parent12b69fb6279f05d77ff595d3729b800cdef87b86 (diff)
downloadpry-99455ad490bad5f1cd89d7b0d37a69526a3b85c8.tar.gz
cli: fix `-f` not suppressing load of `pryrc`
Fixes #1761 (`pry -f` can no longer suppress the loading of .pryrc) If I recall correctly, we split session loading in #1393 because of `Pry.start`. This broke `-f`. I think we can get away with a simple reorder in #parse_options
-rw-r--r--lib/pry/cli.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pry/cli.rb b/lib/pry/cli.rb
index 94773e00..10e948d7 100644
--- a/lib/pry/cli.rb
+++ b/lib/pry/cli.rb
@@ -62,9 +62,6 @@ class Pry
raise NoOptionsError, "No command line options defined! Use Pry::CLI.add_options to add command line options."
end
- # Load config files etc first, ensuring that cli options will take precedence.
- Pry.initial_session_setup
-
self.input_args = args
begin
@@ -81,6 +78,7 @@ class Pry
exit
end
+ Pry.initial_session_setup
Pry.final_session_setup
# Option processors are optional.