aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hbc/cli.rb
blob: 60d298ed63af2a0cc381ae845de22104bab0a46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require "cask/lib/hbc/cli/options"

module Hbc
  class CLI
    include Options

    option "--binarydir=PATH", (lambda do |*|
      opoo <<~EOS
        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