From 40b3444e717458868a9e5cd486f274709dc87729 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Tue, 26 Jul 2011 21:25:48 -0700 Subject: [PATCH] standardize on string-named options --- lib/middleman/cli.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/middleman/cli.rb b/lib/middleman/cli.rb index 443b3cbb..9ea5cfe8 100644 --- a/lib/middleman/cli.rb +++ b/lib/middleman/cli.rb @@ -14,10 +14,10 @@ module Middleman desc "init NAME", "Create new Middleman project directory NAME" available_templates = Middleman::Templates.registered_names.join(", ") - method_option :template, :aliases => "-T", :default => "default", :desc => "Optionally use a pre-defined project template: #{available_templates}" - method_option :css_dir, :default => "stylesheets", :desc => 'The path to the css files' - method_option :js_dir, :default => "javascripts", :desc => 'The path to the javascript files' - method_option :images_dir, :default => "images", :desc => 'The path to the image files' + method_option "template", :aliases => "-T", :default => "default", :desc => "Optionally use a pre-defined project template: #{available_templates}" + method_option "css_dir", :default => "stylesheets", :desc => 'The path to the css files' + method_option "js_dir", :default => "javascripts", :desc => 'The path to the javascript files' + method_option "images_dir", :default => "images", :desc => 'The path to the image files' def init(name) key = options[:template].to_sym key = :default unless Middleman::Templates.registered_templates.has_key?(key) @@ -37,7 +37,7 @@ module Middleman end desc "build", "Builds the static site for deployment" - method_option :relative, :type => :boolean, :aliases => "-r", :default => false, :desc => 'Override the config.rb file and force relative urls' + method_option "relative", :type => :boolean, :aliases => "-r", :default => false, :desc => 'Override the config.rb file and force relative urls' def build ENV['MM_ENV'] = "build" Middleman::Builder.start