Exception: Homebrew::CLI::OptionConflictError

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

Instance Attribute Summary

Attributes inherited from UsageError

#reason

Instance Method Summary collapse

Methods inherited from UsageError

#to_s

Constructor Details

#initialize(args) ⇒ OptionConflictError

Returns a new instance of OptionConflictError.


524
525
526
527
528
# File 'Library/Homebrew/cli/parser.rb', line 524

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