2020-10-10 14:16:11 +02:00
|
|
|
# typed: false
|
2020-08-18 16:47:20 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "cli/parser"
|
|
|
|
|
|
|
|
parser = Homebrew::CLI::Parser.new do
|
|
|
|
usage_banner <<~EOS
|
|
|
|
`verify-formula-undefined`
|
|
|
|
|
|
|
|
Verifies that `require "formula"` has not been performed at startup.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
parser.parse
|
|
|
|
|
|
|
|
Homebrew.failed = defined?(Formula) && Formula.respond_to?(:[])
|