Exception: Homebrew::CLI::OptionConflictError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/cli/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ OptionConflictError

Returns a new instance of OptionConflictError



290
291
292
293
294
295
296
# File 'brew/Library/Homebrew/cli/parser.rb', line 290

def initialize(args)
  args_list = args.map(&Formatter.public_method(:option))
                  .join(" and ")
  super <<~EOS
    Options #{args_list} are mutually exclusive.
  EOS
end