From 9fd872e7b879694d0571ec49cbe3cf3d2a9b9364 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 5 Aug 2014 15:55:43 -0400 Subject: [PATCH] Notify the user when auto-regeneration is disabled. --- lib/jekyll/commands/build.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/commands/build.rb b/lib/jekyll/commands/build.rb index 140a7ae3..cbda2b65 100644 --- a/lib/jekyll/commands/build.rb +++ b/lib/jekyll/commands/build.rb @@ -32,7 +32,12 @@ module Jekyll else build(site, options) end - watch(site, options) if options['watch'] + + if options.fetch('watch', false) + watch(site, options) + else + Jekyll.logger.info "Auto-regeneration:", "disabled. Use --watch to enable." + end end # Build your Jekyll site.