From 120d3e07ca2757ddffe85d3353810ee794481211 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Fri, 6 Feb 2015 13:27:23 -0500 Subject: [PATCH 1/3] added flags from docs --- lib/jekyll/command.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/jekyll/command.rb b/lib/jekyll/command.rb index 12fd66e6..45eb1d9c 100644 --- a/lib/jekyll/command.rb +++ b/lib/jekyll/command.rb @@ -49,6 +49,8 @@ module Jekyll # Returns nothing def add_build_options(c) c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file' + c.option 'destination', '--destination ', 'The current folder will be generated into ' + c.option 'source', '--source --destination ', 'The folder will be generated into ' c.option 'future', '--future', 'Publishes posts with a future date' c.option 'limit_posts', '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish' c.option 'watch', '-w', '--[no-]watch', 'Watch for changes and rebuild' From c96abf7e820816bbe63ddc8e26e43f043d89ee0a Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Tue, 10 Feb 2015 11:08:22 -0500 Subject: [PATCH 2/3] added -s and -d --- lib/jekyll/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/command.rb b/lib/jekyll/command.rb index 45eb1d9c..421df8f0 100644 --- a/lib/jekyll/command.rb +++ b/lib/jekyll/command.rb @@ -49,8 +49,8 @@ module Jekyll # Returns nothing def add_build_options(c) c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file' - c.option 'destination', '--destination ', 'The current folder will be generated into ' - c.option 'source', '--source --destination ', 'The folder will be generated into ' + c.option 'destination', '-d', '--destination ', 'The current folder will be generated into ' + c.option 'source', '-s', '--source --destination ', 'The folder will be generated into ' c.option 'future', '--future', 'Publishes posts with a future date' c.option 'limit_posts', '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish' c.option 'watch', '-w', '--[no-]watch', 'Watch for changes and rebuild' From f933164a2a5c2d8f9cfc290316bdd8248660d0c7 Mon Sep 17 00:00:00 2001 From: Mark Tareshawty Date: Tue, 10 Feb 2015 15:02:49 -0500 Subject: [PATCH 3/3] use SCREAMING_SNAKE_CASE and remove --destination from --source options --- lib/jekyll/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/command.rb b/lib/jekyll/command.rb index 421df8f0..a72640fb 100644 --- a/lib/jekyll/command.rb +++ b/lib/jekyll/command.rb @@ -49,8 +49,8 @@ module Jekyll # Returns nothing def add_build_options(c) c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file' - c.option 'destination', '-d', '--destination ', 'The current folder will be generated into ' - c.option 'source', '-s', '--source --destination ', 'The folder will be generated into ' + c.option 'destination', '-d', '--destination DESTINATION', 'The current folder will be generated into DESTINATION' + c.option 'source', '-s', '--source SOURCE', 'Custom source directory' c.option 'future', '--future', 'Publishes posts with a future date' c.option 'limit_posts', '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish' c.option 'watch', '-w', '--[no-]watch', 'Watch for changes and rebuild'