From 0bb2773b171d8572bd7b73b38cc63ed2fa9b555a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 23 May 2017 17:37:37 +0200 Subject: Deprecate `--caskroom` flag. --- Library/Homebrew/compat/hbc.rb | 1 + Library/Homebrew/compat/hbc/cli.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Library/Homebrew/compat/hbc/cli.rb (limited to 'Library/Homebrew/compat') diff --git a/Library/Homebrew/compat/hbc.rb b/Library/Homebrew/compat/hbc.rb index 353a72488..3ff8fccb7 100644 --- a/Library/Homebrew/compat/hbc.rb +++ b/Library/Homebrew/compat/hbc.rb @@ -2,6 +2,7 @@ require "compat/hbc/cask_loader" require "compat/hbc/cli/update" require "compat/hbc/cache" require "compat/hbc/caskroom" +require "compat/hbc/cli" module Hbc class << self diff --git a/Library/Homebrew/compat/hbc/cli.rb b/Library/Homebrew/compat/hbc/cli.rb new file mode 100644 index 000000000..d563e64cb --- /dev/null +++ b/Library/Homebrew/compat/hbc/cli.rb @@ -0,0 +1,12 @@ +require "cask/lib/hbc/cli/options" + +module Hbc + class CLI + include Options + + option "--caskroom=PATH", (lambda do |value| + Hbc.caskroom = value + odeprecated "`brew cask` with the `--caskroom` flag", disable_on: Time.utc(2017, 10, 31) + end) + end +end -- cgit v1.2.3