Exception: Homebrew::CLI::OptionConstraintError
- Inherits:
-
UsageError
- Object
- RuntimeError
- UsageError
- Homebrew::CLI::OptionConstraintError
- Defined in:
- 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.
642 643 644 645 646 647 648 649 |
# File 'cli/parser.rb', line 642 def initialize(arg1, arg2, missing: false) = if missing "`#{arg2}` cannot be passed without `#{arg1}`." else "`#{arg1}` and `#{arg2}` should be passed together." end super end |