lib/octopress/commands/helpers.rb in octopress-3.0.0.rc.27 vs lib/octopress/commands/helpers.rb in octopress-3.0.0.rc.28

- old
+ new

@@ -1,16 +1,16 @@ module Octopress module CommandHelpers extend self def 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." - c.option 'force', '--force', 'Overwrite file if it already exists' + c.option 'template', '-tm', '--template PATH', "New #{c.name.to_s} from a template." + c.option 'date', '-d', '--date DATE', "Use 'now' or a String that is parseable by Time#parse." + c.option 'force', '-f', '--force', 'Overwrite file if it already exists' end def add_common_options(c) - c.option 'config', '--config <CONFIG_FILE>[,CONFIG_FILE2,...]', Array, 'Custom Jekyll configuration file' + c.option 'config', '-c', '--config <CONFIG_FILE>[,CONFIG_FILE2,...]', Array, 'Custom Jekyll configuration file' end def select_posts(search, action) posts = (action == 'publish' ? find_drafts : find_posts) posts = search_posts(search, posts)