aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorSteven Peters2013-12-16 16:37:59 -0800
committerJack Nagel2013-12-19 16:43:42 -0600
commitb5249432267a6086df2c39fa1c5c26c14db7d513 (patch)
tree99af8fc2de2116d50735c40420547087d4fe24e1 /Library/Homebrew/extend
parentd03100c615891de46ede9f7088b48375ca1d70aa (diff)
downloadbrew-b5249432267a6086df2c39fa1c5c26c14db7d513.tar.bz2
install: add --only-dependencies option
The traditional approach to installing the dependencies of a formula is the following: brew install `brew deps formula` This approach ignores any options that are specified in the parent formula. This pull request adds a --only-dependencies option to brew install that installs the dependencies of a formula with optional flags, but returns before installing the parent formula. Closes Homebrew/homebrew#25272. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 5aa90dbb9..c2e1a9c2e 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -102,6 +102,10 @@ module HomebrewArgvExtension
include? '--ignore-dependencies'
end
+ def only_deps?
+ include? '--only-dependencies'
+ end
+
def json
value 'json'
end