aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hbc/cli.rb
blob: 0173bce9c4618b49706a1f8d0f4c7e0670628c1a (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.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