Notify the user when auto-regeneration is disabled.

This commit is contained in:
Parker Moore 2014-08-05 15:55:43 -04:00
parent 6ca8baa572
commit 9fd872e7b8
1 changed files with 6 additions and 1 deletions

View File

@ -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.