summaryrefslogtreecommitdiff
path: root/bin/pry
diff options
context:
space:
mode:
authorRyan Fitzgerald <rwfitzge@gmail.com>2011-07-24 20:04:44 -0700
committerRyan Fitzgerald <rwfitzge@gmail.com>2011-07-24 20:13:18 -0700
commitc8845bffb4eda254f0db931772c20d7c8da75b60 (patch)
treebed1c2c23d2a85770a439720556fbe0602fa13a9 /bin/pry
parent68a34bf070c2bcf33ffc408263bf2c1d0cf55493 (diff)
downloadpry-c8845bffb4eda254f0db931772c20d7c8da75b60.tar.gz
defer loading of requires specified on the command line
Diffstat (limited to 'bin/pry')
-rw-r--r--bin/pry2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pry b/bin/pry
index 2bf1f769..3ed081b4 100644
--- a/bin/pry
+++ b/bin/pry
@@ -46,7 +46,7 @@ See: `https://github.com/banister` for more information.
end
on :r, :require, "`require` a Ruby script at startup", true do |file|
- require file
+ Pry.config.requires << file
end
on :I, "Add a path to the $LOAD_PATH", true do |path|