class CliGen::Flag(T)

Defined in:

cligen/flag.cr

Constructors

Instance Method Summary

Instance methods inherited from class CliGen::BaseFlag

description : String description, env_var : String | Nil env_var, long : String | Nil long, long_key : String long_key, matches?(token : String) : Bool matches?, raw_value : String | Nil raw_value, satisfied? : Bool satisfied?, short : String | Nil short, validate! : Nil validate!, var : String var

Constructor methods inherited from class CliGen::BaseFlag

new(var : String, short : String | Nil, long : String | Nil, env_var : String | Nil, description : String) new

Constructor Detail

def self.new(var : String, short : String | Nil, long : String | Nil, env_var : String | Nil, description : String, default : T | Nil = nil, options : Array(String) | Nil = nil, validate : T -> Bool | Nil = nil, on_match : Proc(Nil) | Nil = nil) #

Instance Method Detail

def process(argv : Array(Arg) = [] of Array(Arg)) : Nil #

def raw_value : String | Nil #

def requires_arg? : Bool #

def satisfied? : Bool #

def validate! : Nil #

def value! : T #