added --no-plugins command line option to executable, removed unnecessary whitespace from introspectin.rb

This commit is contained in:
John Mair 2011-06-04 01:08:42 +12:00
parent 9a245adb04
commit 166e6e8f0b
2 changed files with 4 additions and 2 deletions

View File

@ -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]))

View File

@ -159,7 +159,6 @@ class Pry
end
end
helpers do
def start_line_for_editor(line_number)