Merge pull request #1898 from ahazem/add-quiet-flag
This commit is contained in:
		
						commit
						35948fa55c
					
				|  | @ -15,6 +15,7 @@ def add_build_options(c) | ||||||
|   c.option 'watch',   '-w', '--watch', 'Watch for changes and rebuild' |   c.option 'watch',   '-w', '--watch', 'Watch for changes and rebuild' | ||||||
|   c.option 'lsi',     '--lsi', 'Use LSI for improved related posts' |   c.option 'lsi',     '--lsi', 'Use LSI for improved related posts' | ||||||
|   c.option 'show_drafts',  '-D', '--drafts', 'Render posts in the _drafts folder' |   c.option 'show_drafts',  '-D', '--drafts', 'Render posts in the _drafts folder' | ||||||
|  |   c.option 'quiet', '-q', '--quiet', 'Silence output.' | ||||||
|   c.option 'verbose', '-V', '--verbose', 'Print verbose output.' |   c.option 'verbose', '-V', '--verbose', 'Print verbose output.' | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,6 +4,8 @@ module Jekyll | ||||||
|       def self.process(options) |       def self.process(options) | ||||||
|         site = Jekyll::Site.new(options) |         site = Jekyll::Site.new(options) | ||||||
| 
 | 
 | ||||||
|  |         Jekyll.logger.log_level = Jekyll::Stevenson::ERROR if options['quiet'] | ||||||
|  | 
 | ||||||
|         self.build(site, options) |         self.build(site, options) | ||||||
|         self.watch(site, options) if options['watch'] |         self.watch(site, options) if options['watch'] | ||||||
|       end |       end | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue