enum Cling::Option::Type

Overview

Identifies the value type of the option. None (the default) will not accept any arguments, Single will accept exactly 1 argument, and Multiple will accept multiple arguments. Multiple type options also support specifying the option name more than once in the command line:

command argument --option=1,2,3 # allowed
command argument -o 1 -o=2 -o 3 # also allowed

Defined in:

cling/option.cr

Enum Members

None = 0
Single = 1
Multiple = 2

Instance Method Summary

Instance Method Detail

def multiple? #

[View source]
def none? #

[View source]
def single? #

[View source]