summaryrefslogtreecommitdiff
path: root/bin/pry
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2011-06-04 01:08:42 +1200
committerJohn Mair <jrmair@gmail.com>2011-06-04 01:08:42 +1200
commit166e6e8f0bdb96669a89e10b3455776735b896a2 (patch)
tree909451ad5b0b181314097954c353458342150e4f /bin/pry
parent9a245adb04d9dcfb0d0475931e187b38f9bcf099 (diff)
downloadpry-166e6e8f0bdb96669a89e10b3455776735b896a2.tar.gz
added --no-plugins command line option to executable, removed unnecessary whitespace from introspectin.rb
Diffstat (limited to 'bin/pry')
-rw-r--r--bin/pry5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/pry b/bin/pry
index 4cfd464b..0a0d4b7e 100644
--- a/bin/pry
+++ b/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]))