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)
SourceInstance methods
key
Sourcekey!
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.
key=(key : String)
Sourcekey?
Sourcekind
Sourcekind=(kind : Kind)
Sourcestring?
Sourcevalue
Sourcevalue!
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.
value=(value : String)
Sourcevalue?
Source