mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added --no-plugins command line option to executable, removed unnecessary whitespace from introspectin.rb
This commit is contained in:
parent
9a245adb04
commit
166e6e8f0b
2 changed files with 4 additions and 2 deletions
5
bin/pry
5
bin/pry
|
@ -22,7 +22,7 @@ See: `https://github.com/banister` for more information.
|
|||
on :e, :exec, "A line of code to execute in context before the session starts", true
|
||||
on :f, "Suppress loading of ~/.pryrc"
|
||||
on "no-color", "Disable syntax highlighting for session"
|
||||
|
||||
on "no-plugins", "Suppress loading of plugins."
|
||||
on "simple-prompt", "Enable simple prompt mode" do
|
||||
Pry.prompt = Pry::SIMPLE_PROMPT
|
||||
end
|
||||
|
@ -53,6 +53,9 @@ Pry.cli = true
|
|||
# load ~/.pryrc, if not suppressed with -f option
|
||||
Pry.config.should_load_rc = !opts.f?
|
||||
|
||||
# suppress plugins if given --no-plugins optino
|
||||
Pry.config.plugins.enabled = false if opts["no-plugins"]
|
||||
|
||||
# create the actual context
|
||||
context = Pry.binding_for(eval(opts[:context]))
|
||||
|
||||
|
|
|
@ -159,7 +159,6 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
helpers do
|
||||
|
||||
def start_line_for_editor(line_number)
|
||||
|
|
Loading…
Add table
Reference in a new issue