Exception: Homebrew::CLI::OptionConflictError

Inherits:
UsageError
  • Object
show all
Defined in:
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.



656
657
658
659
660
# File 'cli/parser.rb', line 656

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