aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-25 00:45:46 +0200
committerGitHub2017-05-25 00:45:46 +0200
commite931fee732d9d8d34eb9d689782bafb3822302f7 (patch)
tree8b827598a32dea11d3f9999e520bc93700117194 /Library/Homebrew/compat
parenta3e30a11d147da760c14cbbe00e50be53a468534 (diff)
parent68a513083ebbd6a91a0fbb27daff0401edf7f47a (diff)
downloadbrew-e931fee732d9d8d34eb9d689782bafb3822302f7.tar.bz2
Merge pull request #2672 from reitermarkus/deprecate-caskroom-flag
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.rb19
2 files changed, 20 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..0173bce9c
--- /dev/null
+++ b/Library/Homebrew/compat/hbc/cli.rb
@@ -0,0 +1,19 @@
+require "cask/lib/hbc/cli/options"
+
+module Hbc
+ class CLI
+ include Options
+
+ option "--binarydir=PATH", (lambda do |*|
+ opoo <<-EOS.undent
+ Option --binarydir is obsolete!
+ Homebrew-Cask now uses the same location as your Homebrew installation for executable links.
+ EOS
+ end)
+
+ 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