aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-03-05 15:36:40 +0000
committerMike McQuaid2015-03-05 15:36:40 +0000
commit03d3f9d292808f7af908726a450629adca78c182 (patch)
treeddab19bb22feab5b9ea2a2baaae94e8327d160f3 /Library/Homebrew/cmd/install.rb
parent12861686b847f26f50af7d9a9024a0bc4d25b3bd (diff)
downloadbrew-03d3f9d292808f7af908726a450629adca78c182.tar.bz2
cmd/install: add force/debug/verbose to cask.
Closes Homebrew/homebrew#37217.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 1fb5a2f0e..69c1fe7fa 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -31,9 +31,13 @@ module Homebrew
if ARGV.casks.any?
brew_cask = Formulary.factory("brew-cask")
install_formula(brew_cask) unless brew_cask.installed?
+ args = []
+ args << "--force" if ARGV.force?
+ args << "--debug" if ARGV.debug?
+ args << "--verbose" if ARGV.verbose?
ARGV.casks.each do |c|
- cmd = "brew", "cask", "install", c
+ cmd = "brew", "cask", "install", c, *args
ohai cmd.join " "
system(*cmd)
end