Accept -s as shorthand for --build-from-source

This is experimental and will be reverted if it causes problems.

Closes Homebrew/homebrew#30392.
This commit is contained in:
Jack Nagel 2014-07-02 23:15:09 -05:00
parent 32d84377d5
commit ef9f6ec4af

View File

@ -132,7 +132,7 @@ module HomebrewArgvExtension
end
def build_from_source?
include? '--build-from-source' or !ENV['HOMEBREW_BUILD_FROM_SOURCE'].nil?
switch?("s") || include?("--build-from-source") || !!ENV["HOMEBREW_BUILD_FROM_SOURCE"]
end
def flag? flag