aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-02 23:15:09 -0500
committerJack Nagel2014-07-02 23:15:22 -0500
commit5f60c0d58dec3dcb59fb0db258102d97d77e4930 (patch)
tree6961fe3e5c475c559e1e79471551614c4e1b2980 /Library
parented70495b164f7189bec1b0f80e54acafaa6ecdf3 (diff)
downloadhomebrew-5f60c0d58dec3dcb59fb0db258102d97d77e4930.tar.bz2
Accept -s as shorthand for --build-from-source
This is experimental and will be reverted if it causes problems. Closes #30392.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 57e9cfc79..29dfac69a 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -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