Sha256: 8e9ca8be93b9115057381041e7de74df0a4b4d69fdb1d5b18b98e852e8751d77

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

module Octopress
  module CommandHelpers
    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."
      c.option 'force',    '--force', 'Overwrite file if it already exists'
    end

    def self.add_common_options(c)
      c.option 'config',           '--config <CONFIG_FILE>[,CONFIG_FILE2,...]', Array, 'Custom Jekyll configuration file'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
octopress-3.0.0.rc.25 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.24 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.23 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.22 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.21 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.20 lib/octopress/commands/helpers.rb
octopress-3.0.0.rc.19 lib/octopress/commands/helpers.rb