lib/octopress/commands/helpers.rb in octopress-3.0.0.alpha5 vs lib/octopress/commands/helpers.rb in octopress-3.0.0.alpha6
- old
+ new
@@ -14,7 +14,13 @@
if drafts_state = options.delete('drafts')
options['show_drafts'] = drafts_state
end
options
end
+
+ def self.add_common_options(c)
+ 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