diff options
author | John Mair <jrmair@gmail.com> | 2011-06-04 01:08:42 +1200 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2011-06-04 01:08:42 +1200 |
commit | 166e6e8f0bdb96669a89e10b3455776735b896a2 (patch) | |
tree | 909451ad5b0b181314097954c353458342150e4f /bin/pry | |
parent | 9a245adb04d9dcfb0d0475931e187b38f9bcf099 (diff) | |
download | pry-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/pry | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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])) |