class CLI::Parser::Result

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:

cli/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(kind : CLI::Parser::ResultKind, value : String, *, string : Bool = false) #

[View source]

Instance Method Detail

def kind : ResultKind #

[View source]
def kind=(kind : ResultKind) #

[View source]
def parse_value : String #

Returns the key form of the value for flag results, or #value for argument results.


[View source]
def string? : Bool #

[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]