Merge pull request #3418 from tarebyte/destination-and-source

Added build --destination and --source flags
This commit is contained in:
Jordon Bedwell 2015-03-04 05:21:36 -06:00
commit d40b6d6ee0
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ module Jekyll
# Returns nothing # Returns nothing
def add_build_options(c) def add_build_options(c)
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file' c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
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 '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 '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' c.option 'watch', '-w', '--[no-]watch', 'Watch for changes and rebuild'