class Optimist::ShortNames

Defined in:

optimist/names.cr

Constant Summary

INVALID_ARG_REGEX = /[\d-]/

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : ShortNameType) #

[View source]

Instance Method Detail

def add(value : Char) #

Add a single character option


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

Overload for String


[View source]
def add(value : Bool | Nil) #

Overload for true/false values


[View source]
def add(values : MultiShortNameType) #

Handle an Array of Char/String


[View source]
def auto : Bool #

[View source]
def chars : Array(String) #

[View source]