1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Remove --relative CLI option in favor of just turning on relative_assets in config.rb

This commit is contained in:
Ben Hollis 2012-03-04 17:30:09 -08:00
parent ac9ae8fcee
commit dc0249b8b9

View file

@ -16,16 +16,11 @@ module Middleman::Cli
namespace :build namespace :build
desc "build [options]", "Builds the static site for deployment" desc "build [options]", "Builds the static site for deployment"
method_option :relative,
:type => :boolean,
:aliases => "-r",
:default => false,
:desc => 'Force relative urls'
method_option :clean, method_option :clean,
:type => :boolean, :type => :boolean,
:aliases => "-c", :aliases => "-c",
:default => false, :default => false,
:desc => 'Removes orpahand files or directories from build' :desc => 'Removes orphaned files or directories from build'
method_option :glob, method_option :glob,
:type => :string, :type => :string,
:aliases => "-g", :aliases => "-g",
@ -46,10 +41,6 @@ module Middleman::Cli
self.class.shared_instance(options["verbose"] || false) self.class.shared_instance(options["verbose"] || false)
if options.has_key?("relative") && options["relative"]
self.class.shared_instance.activate :relative_assets
end
self.class.shared_rack self.class.shared_rack
opts = {} opts = {}