mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
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
This commit is contained in:
parent
12b69fb627
commit
99455ad490
1 changed files with 1 additions and 3 deletions
|
@ -62,9 +62,6 @@ class Pry
|
||||||
raise NoOptionsError, "No command line options defined! Use Pry::CLI.add_options to add command line options."
|
raise NoOptionsError, "No command line options defined! Use Pry::CLI.add_options to add command line options."
|
||||||
end
|
end
|
||||||
|
|
||||||
# Load config files etc first, ensuring that cli options will take precedence.
|
|
||||||
Pry.initial_session_setup
|
|
||||||
|
|
||||||
self.input_args = args
|
self.input_args = args
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
@ -81,6 +78,7 @@ class Pry
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Pry.initial_session_setup
|
||||||
Pry.final_session_setup
|
Pry.final_session_setup
|
||||||
|
|
||||||
# Option processors are optional.
|
# Option processors are optional.
|
||||||
|
|
Loading…
Add table
Reference in a new issue