diff options
| author | Markus Reiter | 2017-05-23 17:37:37 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-24 23:54:36 +0200 |
| commit | 0bb2773b171d8572bd7b73b38cc63ed2fa9b555a (patch) | |
| tree | b67499476fb00071f40b8f4873d889abea195c6a /Library/Homebrew/compat | |
| parent | a3e30a11d147da760c14cbbe00e50be53a468534 (diff) | |
| download | brew-0bb2773b171d8572bd7b73b38cc63ed2fa9b555a.tar.bz2 | |
Deprecate `--caskroom` flag.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/hbc.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/compat/hbc/cli.rb | 12 |
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 |
