Exception: Homebrew::CLI::OptionConstraintError
- Inherits:
-
UsageError
- Object
- RuntimeError
- UsageError
- Homebrew::CLI::OptionConstraintError
- Defined in:
- Library/Homebrew/cli/parser.rb
Instance Attribute Summary
Attributes inherited from UsageError
Instance Method Summary collapse
-
#initialize(arg1, arg2, missing: false) ⇒ OptionConstraintError
constructor
A new instance of OptionConstraintError.
Methods inherited from UsageError
Constructor Details
#initialize(arg1, arg2, missing: false) ⇒ OptionConstraintError
Returns a new instance of OptionConstraintError.
510 511 512 513 514 515 516 517 518 519 520 |
# File 'Library/Homebrew/cli/parser.rb', line 510 def initialize(arg1, arg2, missing: false) arg1 = "--#{arg1.tr("_", "-")}" arg2 = "--#{arg2.tr("_", "-")}" = if !missing "`#{arg1}` and `#{arg2}` should be passed together." else "`#{arg2}` cannot be passed without `#{arg1}`." end super end |