lib/octopress/commands/helpers.rb in octopress-3.0.0.alpha8 vs lib/octopress/commands/helpers.rb in octopress-3.0.0.rc.1
- old
+ new
@@ -16,12 +16,17 @@
options['show_drafts'] = drafts_state
end
options
end
+ def self.add_page_options(c)
+ c.option 'template', '--template PATH', "New #{c.name.to_s} from a template."
+ c.option 'date', '--date DATE', "Use 'now' or a String that is parseable by Time#parse. (default: Time.now.iso8601)"
+ c.option 'force', '--force', 'Overwrite file if it already exists'
+ 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 'force', '--force', 'Force creation even if PATH already exists'
+ c.option 'config', '--config <CONFIG_FILE>[,CONFIG_FILE2,...]', Array, 'Custom Jekyll configuration file'
+ c.option 'octopress-config', '--octopress-config <CONFIG_FILE>', 'Custom Octopress configuration file'
end
end
end