Class: Toys::ArgParser::FlagValueNotAllowedError

Inherits:
UsageError
  • Object
show all
Defined in:
core-docs/toys/arg_parser.rb

Overview

Defined in the toys-core gem

A UsageError indicating a value was provided for a flag that does not take a value.

Instance Attribute Summary

Attributes inherited from UsageError

#message, #name, #suggestions, #value

Instance Method Summary collapse

Methods inherited from UsageError

#full_message

Constructor Details

#initialize(message = nil, name: nil) ⇒ FlagValueNotAllowedError

Create a FlagValueNotAllowedError.

Parameters:

  • message (String, nil) (defaults to: nil)

    A custom message. Normally omitted, in which case an appropriate default is supplied.

  • name (String) (defaults to: nil)

    The name of the flag. Normally required.



93
94
95
# File 'core-docs/toys/arg_parser.rb', line 93

def initialize(message = nil, name: nil)
  # Source available in the toys-core gem
end