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:
parent
53b3c5f75b
commit
f435bde464
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue