Merge pull request #1394 from catsby/drafts_flag

Add -D short-form switch for drafts
This commit is contained in:
Parker Moore 2013-08-07 14:38:49 -07:00
commit d05fd32732
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ command :build do |c|
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.option '--drafts', 'Render posts in the _drafts folder'
c.option '-D', '--drafts', 'Render posts in the _drafts folder'
c.action do |args, options|
options = normalize_options(options.__hash__)
@ -82,7 +82,7 @@ command :serve do |c|
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.option '--drafts', 'Render posts in the _drafts folder'
c.option '-D', '--drafts', 'Render posts in the _drafts folder'
c.option '-P', '--port [PORT]', 'Port to listen on'
c.option '-H', '--host [HOST]', 'Host to bind to'