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 From 68a513083ebbd6a91a0fbb27daff0401edf7f47a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 24 May 2017 02:46:23 +0200 Subject: Also move `--binarydir` to `compat/*`. --- Library/Homebrew/compat/hbc/cli.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/compat') diff --git a/Library/Homebrew/compat/hbc/cli.rb b/Library/Homebrew/compat/hbc/cli.rb index d563e64cb..0173bce9c 100644 --- a/Library/Homebrew/compat/hbc/cli.rb +++ b/Library/Homebrew/compat/hbc/cli.rb @@ -4,6 +4,13 @@ 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) -- cgit v1.2.3