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

Add no-prompt command line option (resolves #730)

This commit is contained in:
Uros Jurglic 2013-12-12 22:25:28 +01:00
parent 53b3c5f75b
commit f435bde464

View file

@ -166,6 +166,10 @@ Copyright (c) 2013 John Mair (banisterfiend)
Pry.config.prompt = Pry::SIMPLE_PROMPT
end
on "no-prompt", "No prompt mode" do
Pry.config.prompt = proc { '' }
end
on :r, :require=, "`require` a Ruby script at startup" do |file|
Pry.config.requires << file
end