class

Argy::Flag

Inherits Reference < Object

Constructors

new(name : String, shorthand : Char | Nil, usage : String)
Source

Instance methods

changed
Source
changed=(changed : Bool)
Source
name
Source
reset!

Reset the flag to its declared default and clear changed-state.

Source
set_from_string(raw : String) : Nil

Set the flag value from a raw string; raises InvalidFlagValueError on failure

Source
shorthand
Source
type_label

The type label shown in help (e.g. "string", "int")

Source
usage
Source
value_string

Human-readable current value (used in help output)

Source