lib/octopress-ink/commands/helpers.rb in octopress-ink-1.0.0.alpha.33 vs lib/octopress-ink/commands/helpers.rb in octopress-ink-1.0.0.alpha.34
- old
+ new
@@ -1,19 +1,21 @@
module Octopress
module Ink
module Commands
module CommandHelpers
- def self.add_asset_options(c)
- c.option "layouts", "--layouts", "List only layouts"
- c.option "includes", "--includes", "List only includes"
- c.option "pages", "--pages", "List only pages"
- c.option "stylesheets", "--stylesheets", "List only stylesheets"
- c.option "sass", "--sass", "List only Sass files"
- c.option "javascripts", "--javascripts", "List only Javascripts"
- c.option "images", "--images", "List only images"
- c.option "fonts", "--fonts", "List only fonts"
- c.option "files", "--files", "List only files"
+ def self.add_asset_options(c, action)
+ c.option "layouts", "--layouts", "#{action} only layouts"
+ c.option "includes", "--includes", "#{action} only includes"
+ c.option "pages", "--pages", "#{action} only pages"
+ c.option "stylesheets", "--stylesheets", "#{action} only Stylesheets"
+ c.option "sass", "--sass", "#{action} only Sass files"
+ c.option "javascripts", "--javascripts", "#{action} only Javascripts"
+ c.option "images", "--images", "#{action} only images"
+ c.option "fonts", "--fonts", "#{action} only fonts"
+ c.option "files", "--files", "#{action} only files"
+ c.option "config", "--config <CONFIG_FILE>[,CONFIG_FILE2,...]", Array, "Custom configuration file"
end
end
end
end
end
+