Exception: Homebrew::CLI::MaxNamedArgumentsError

Inherits:
UsageError
  • Object
show all
Extended by:
T::Sig
Defined in:
brew/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(maximum) ⇒ void

Parameters:

  • maximum (Integer)


692
693
694
695
696
697
698
699
# File 'brew/Library/Homebrew/cli/parser.rb', line 692

def initialize(maximum)
  super case maximum
  when 0
    "This command does not take named arguments."
  else
    "This command does not take more than #{maximum} named #{"argument".pluralize(maximum)}"
  end
end