class

OptionBuilder::Flag

Inherits Reference < Object

Abstract base for command flags.

Constructors

new(short : Char | Nil, long : String, description : String, persistent : Bool, env_var : String | Nil = nil, aliases : Array(String) = [] of String, hidden : Bool = false, deprecated : String | Nil = nil, required : Bool = false)
Source

Instance methods

aliases
Source
choice_strings

Returns choices as strings for completion. Override in subclasses with choices.

Source
deprecated
Source
description
Source
env_var
Source
help_line

Formatted help line. Subclasses customize via help_annotations.

Source
hidden?
Source
long
Source
parse_and_call(value : String)
Source
persistent?
Source
required?
Source
short
Source
was_set?
Source