summaryrefslogtreecommitdiff
path: root/bin/pry
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2011-03-03 00:18:26 +1300
committerJohn Mair <jrmair@gmail.com>2011-03-03 00:18:26 +1300
commitf1c5fa4a69014b8be2640f110b4306f9bd51734f (patch)
treebcb1b6583eaf58627a97da1845e3aed9f4af3add /bin/pry
parent7ed6c17ebc98ef60bf425bf5a2dd1f0f776e109d (diff)
downloadpry-f1c5fa4a69014b8be2640f110b4306f9bd51734f.tar.gz
version 0.6.7pre3, getting syntax higlighting working and adding new commands to pry commandline, see TODO
Diffstat (limited to 'bin/pry')
-rw-r--r--bin/pry12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/pry b/bin/pry
index 986ee47d..cfba91c6 100644
--- a/bin/pry
+++ b/bin/pry
@@ -35,6 +35,18 @@ See: `https://github.com/banister` for more information.
options[:loadrc] = false
end
+ opts.on("--color", "Start session with syntax highlighting on.") do
+ Pry.color = true
+ end
+
+ opts.on("--simple-prompt", "Simple prompt mode.") do
+ Pry.prompt = Pry::SIMPLE_PROMPT
+ end
+
+ opts.on("-I LOADPATH", "Specify $LOAD_PATH directory.") do |load_path|
+ $LOAD_PATH << load_path
+ end
+
opts.on("-v", "--version", "Display the Pry version.") do
puts "Pry version #{Pry::VERSION} on Ruby #{RUBY_VERSION}"
exit