struct

Kebab::Error::MissingValue

Inherits Kebab::Error::Base < Struct < Value < Object

An option needed a value but didn't get one (e.g. --at at the end of the arg list, or --at --verbose).

Constructors

new(option : Schema::Option, schema : Schema::Command, got : Int32 = 0, invoked : String | Nil = nil)
Source

Instance methods

got

How many values the occurrence actually supplied.

Source
option

The option that needed a value.

Source
schema

The command being parsed when the error fired.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source

Nested types