Exception: Homebrew::CLI::OptionConflictError

Inherits:
UsageError 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.



680
681
682
683
684
# File 'cli/parser.rb', line 680

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