summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorConrad Irwin <conrad.irwin@gmail.com>2013-01-27 01:20:39 -0800
committerConrad Irwin <conrad.irwin@gmail.com>2013-01-27 01:27:29 -0800
commitd40527a91073f3b988c60192b8f80c48e8ad77e6 (patch)
tree6d9e92383d3d49434d0123f2f503c34996f6c7e5 /Rakefile
parent9074613927d56dc437d4f65df63d37a680f44754 (diff)
downloadpry-d40527a91073f3b988c60192b8f80c48e8ad77e6.tar.gz
All passing arguments to `rake pry`.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index e4aabb26..d75dee5e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -54,9 +54,13 @@ task :recspec do
run_specs all
end
-desc "Run pry"
+desc "Run pry (you can pass arguments using _ in place of -)"
task :pry do
check_dependencies unless ENV['SKIP_DEP_CHECK']
+ ARGV.shift if ARGV.first == "pry"
+ ARGV.map! do |arg|
+ arg.sub(/^_*/) { |m| "-" * m.size }
+ end
load 'bin/pry'
end