From ddc6f26b9114bf47b1d1efbba55c75a1a2870189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Wed, 8 Jun 2011 12:16:36 +0200 Subject: [PATCH] Clear the terminal on start when the :clear option is given --- lib/guard.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guard.rb b/lib/guard.rb index b9c9bf1..6b49650 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -34,6 +34,7 @@ module Guard run { run_on_change_for_all_guards(files) } if Watcher.match_files?(guards, files) end + UI.clear if options[:clear] UI.info "Guard is now watching at '#{Dir.pwd}'" guards.each { |guard| supervised_task(guard, :start) } listener.start