cmd/install: add force/debug/verbose to cask.

Closes Homebrew/homebrew#37217.
This commit is contained in:
Mike McQuaid 2015-03-05 15:36:40 +00:00
parent 12861686b8
commit 03d3f9d292

View File

@ -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