cmd/install: add force/debug/verbose to cask.
Closes Homebrew/homebrew#37217.
This commit is contained in:
parent
12861686b8
commit
03d3f9d292
@ -31,9 +31,13 @@ module Homebrew
|
|||||||
if ARGV.casks.any?
|
if ARGV.casks.any?
|
||||||
brew_cask = Formulary.factory("brew-cask")
|
brew_cask = Formulary.factory("brew-cask")
|
||||||
install_formula(brew_cask) unless brew_cask.installed?
|
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|
|
ARGV.casks.each do |c|
|
||||||
cmd = "brew", "cask", "install", c
|
cmd = "brew", "cask", "install", c, *args
|
||||||
ohai cmd.join " "
|
ohai cmd.join " "
|
||||||
system(*cmd)
|
system(*cmd)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user