class

Cling::Parser::Result

Inherits Reference < Object

The result of a parsed value from the command line. This can be a normal argument, string argument, short flag, or long flag.

Constructors

new(kind : Kind, key : String | Nil = nil, value : String | Nil = nil, *, string : Bool = false)
Source

Instance methods

key!

Returns the non-nil form of the result key which is the name if it is a flag, or the value if it is an argument.

Source
key=(key : String)
Source
key?
Source
kind
Source
kind=(kind : Kind)
Source
string?
Source
value
Source
value!

Returns the non-nil form of the result value which is the explicit value if it is a flag, or the value if it is an argument.

Source
value=(value : String)
Source
value?
Source

Nested types