Exception: Toys::ArgParser::FlagGroupConstraintError

Inherits:
UsageError
  • Object
show all
Defined in:
lib/toys/arg_parser.rb

Overview

A UsageError indicating a flag group constraint was not fulfilled.

Instance Attribute Summary

Attributes inherited from UsageError

#message, #name, #suggestions, #value

Instance Method Summary collapse

Methods inherited from UsageError

#message_with_suggestions

Constructor Details

#initialize(message = nil) ⇒ FlagGroupConstraintError

Create a FlagGroupConstraintError.

Parameters:

  • message (String) (defaults to: nil)

    The message. Required.



282
283
284
285
# File 'lib/toys/arg_parser.rb', line 282

def initialize(message = nil)
  super(message || "A flag group constraint was violated",
        skip_frames: 1)
end