lib/octopress/commands/helpers.rb in octopress-3.0.0.alpha6 vs lib/octopress/commands/helpers.rb in octopress-3.0.0.alpha7
- old
+ new
@@ -1,9 +1,9 @@
module Octopress
module CommandHelpers
def self.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 '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', '--watch', 'Watch for changes and rebuild'
c.option 'list', '--lsi', 'Use LSI for improved related posts'
c.option 'drafts','-D', '--drafts', 'Render posts in the _drafts folder'
@@ -16,11 +16,11 @@
end
options
end
def self.add_common_options(c)
+ c.option 'template', '--template PATH', "New #{c.name.to_s} from a template. PATH is relative to _templates/"
c.option 'date', '--date DATE', 'String that is parseable by Time#parse. (default: Time.now.iso8601)'
- c.option 'template', '--template PATH', 'Path to a post or page template.'
c.option 'force', '--force', 'Force creation even if PATH already exists'
end
end
end