aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-23 17:37:37 +0200
committerMarkus Reiter2017-05-24 23:54:36 +0200
commit0bb2773b171d8572bd7b73b38cc63ed2fa9b555a (patch)
treeb67499476fb00071f40b8f4873d889abea195c6a /Library/Homebrew/compat
parenta3e30a11d147da760c14cbbe00e50be53a468534 (diff)
downloadbrew-0bb2773b171d8572bd7b73b38cc63ed2fa9b555a.tar.bz2
Deprecate `--caskroom` flag.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/hbc.rb1
-rw-r--r--Library/Homebrew/compat/hbc/cli.rb12
2 files changed, 13 insertions, 0 deletions
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