class
Cling::Parser::Result
- Cling::Parser::Result
- Reference
- Object
Overview
The result of a parsed value from the command line. This can be a normal argument, string argument, short flag, or long flag.
Defined in:
cling/parser.crConstructors
Instance Method Summary
- #key : String
-
#key! : String
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.
DEPRECATED Use
Cling::Parser::Result#keyinstead. - #key=(key : String)
- #key? : String | Nil
- #kind : Kind
- #kind=(kind : Kind)
- #string? : Bool
- #value : String
-
#value! : String
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.
DEPRECATED Use
Cling::Parser::Result#valueinstead. - #value=(value : String)
- #value? : String | Nil
Constructor Detail
Instance Method Detail
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.
DEPRECATED Use Cling::Parser::Result#key instead.
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.
DEPRECATED Use Cling::Parser::Result#value instead.