1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added --disable-plugin and --select-plugin CLI options, closes #596

This commit is contained in:
John Mair 2012-06-26 23:44:13 +12:00
parent 56c6512dd6
commit 0af52b82ab

View file

@ -103,8 +103,16 @@ Copyright (c) 2011 John Mair (banisterfiend)
Pry.config.should_load_rc = false
end
on :s, "select-plugin", "Only load specified plugin (and no others).", :argument => true do |plugin_name|
Pry.config.should_load_plugins = false
Pry.plugins[plugin_name].activate!
end
on :d, "disable-plugin", "Disable a specific plugin.", :argument => true do |plugin_name|
Pry.plugins[plugin_name].disable!
end
on "no-plugins", "Suppress loading of plugins." do
# suppress plugins if given --no-plugins optino
Pry.config.should_load_plugins = false
end