Skip to content
Snippets Groups Projects
Commit 0d1162d8 authored by Markus Reiter's avatar Markus Reiter
Browse files

Make `zap` recognize `--force`.

parent 8779784d
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment