Exception: GLI::MissingRequiredOptionsException
- Inherits:
-
BadCommandOptionsOrArguments
- Object
- StandardError
- BadCommandLine
- BadCommandOptionsOrArguments
- GLI::MissingRequiredOptionsException
- Defined in:
- lib/gli/exceptions.rb
Instance Attribute Summary
Attributes inherited from BadCommandOptionsOrArguments
Instance Method Summary collapse
-
#initialize(command, missing_required_options) ⇒ MissingRequiredOptionsException
constructor
A new instance of MissingRequiredOptionsException.
Methods inherited from BadCommandLine
Methods included from StandardException
Constructor Details
#initialize(command, missing_required_options) ⇒ MissingRequiredOptionsException
Returns a new instance of MissingRequiredOptionsException.
91 92 93 94 95 |
# File 'lib/gli/exceptions.rb', line 91 def initialize(command,) = "#{command.name} requires these options: " = .sort.map(&:name).join(", ") super( + ,command) end |