aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-07-30 18:51:05 +0200
committerMarkus Reiter2017-07-30 18:51:05 +0200
commit0d1162d821a1382631e4789582a692e39aa9c059 (patch)
treeb11c1847eda6efa28347bf3e51d6b2bce47e443a
parent8779784d7092b6f1175eaf8c780c4d3cc88b4b16 (diff)
downloadbrew-0d1162d821a1382631e4789582a692e39aa9c059.tar.bz2
Make `zap` recognize `--force`.
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/zap.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/zap.rb b/Library/Homebrew/cask/lib/hbc/cli/zap.rb
index d12943106..e709f4191 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/zap.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/zap.rb
@@ -1,6 +1,8 @@
module Hbc
class CLI
class Zap < AbstractCommand
+ option "--force", :force, false
+
def initialize(*)
super
raise CaskUnspecifiedError if args.empty?
@@ -13,7 +15,7 @@ module Hbc
def zap_casks
casks.each do |cask|
odebug "Zapping Cask #{cask}"
- Installer.new(cask, verbose: verbose?).zap
+ Installer.new(cask, verbose: verbose?, force: force?).zap
end
end